Hide Footer’s Social Links for non-logged in users
[mbr_not_logged_in] [/mbr_not_logged_in]Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
[mbr_not_logged_in] [/mbr_not_logged_in]Continue reading
// This script contains the logic for opening and closing the information modal located within the FAQ section of the Profile Builder ‘Edit Profile’ form // // Location: // – Account > Edit Profile > FAQs // Manage the opening…Continue reading
// This script is intended to update the placeholder text within the Profile Builder ‘Edit Profile’ form. // Form Location: // – Account > Edit Profile > Vendor Information // – Account > Edit Profile > Social Media Links //…Continue reading
// This script is intended to update the placeholder text with the Profile Builder Edit Profile form. // Form Location: // – Account > Edit Profile > Vendor Information // – Account > Edit Profile > Social Media Links //…Continue reading
“use strict” jQuery(document).on(‘ready’, function () { jQuery(‘input[type=text]’).addClass(‘uk-input’); jQuery(‘input[type=password]’).addClass(‘uk-input’); jQuery(‘input[type=number]’).addClass(‘uk-input’); jQuery(‘input[type=email]’).addClass(‘uk-input’); jQuery(‘select’).addClass(‘uk-select’); jQuery(‘input[type=radio]’).addClass(‘uk-radio’); jQuery(‘input[type=checkbox]’).addClass(‘uk-checkbox’); jQuery(‘input[type=range]’).addClass(‘uk-range’); jQuery(‘input[type=tel]’).addClass(‘uk-input’); jQuery(‘textarea’).addClass(‘uk-textarea’); jQuery(‘[type=”submit”]:not(“.uk-text-link”)’).addClass(‘uk-button uk-button-primary uk-button-large uk-margin-top’); jQuery(‘.acf-fields’).addClass(‘uk-grid’); jQuery(‘form .acf-field’).each(function () { jQuery(this).addClass(‘uk-grid-margin-medium’); jQuery(this).find(‘.acf-label > label’).appendTo(jQuery(this).find(‘.acf-input-wrap’)); jQuery(this).find(‘label’, ‘textarea’).attr({ ‘data-valid’: jQuery(this).find(‘input’, ‘textarea’).attr(‘placeholder’), ‘data-placeholder’: jQuery(this).find(‘input’, ‘textarea’).attr(‘placeholder’) }).text(”); jQuery(this).find(‘input’, ‘textarea’).attr(‘placeholder’,…Continue reading
// This script is intended to update the placeholder text with the Profile Builder Edit Profile form. // Form Location: // – Account > Edit Profile > Vendor Information // – Account > Edit Profile > Social Media Links //…Continue reading
document.addEventListener(‘DOMContentLoaded’, function() { // Function to update placeholders function updatePlaceholder() { // Select all elements that match the pattern document.querySelectorAll(‘input.extra_field_input[name^=”video_url”]’).forEach(input => { input.placeholder = ‘https://youtube.com/watch?v=example’; }); } // Initial update for existing fields updatePlaceholder(); // MutationObserver to handle dynamically added…Continue reading
// This code snippet is intended to return to the last active tab of the ‘edit profile’ form update form submission document.addEventListener(‘DOMContentLoaded’, function() { // Function to show a tab given the index function showTab(index) { // Get all tabs…Continue reading
document.addEventListener(‘DOMContentLoaded’, function() { // Function to show a tab given the index function showTab(index) { // Get all tabs and tab content elements var tabs = document.querySelectorAll(‘.wppb-msf-tabs’); var contents = document.querySelectorAll(‘.wppb-msf-step’); // Hide all tab content and remove active class…Continue reading
document.addEventListener(‘DOMContentLoaded’, function() { // Function to show a tab given the index function showTab(index) { // Get all tabs and tab content elements var tabs = document.querySelectorAll(‘.wppb-msf-tabs’); var contents = document.querySelectorAll(‘.wppb-msf-step’); // Hide all tab content and remove active class…Continue reading