Type: js
JS [Paid Member Subscriptions & Profile Builder]: Updated Video Gallery & Social Link URL Placeholder Text
// 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
JS [Paid Member Subscriptions & Profile Builder]: Updated Video Gallery & Social Link URL Placeholder Text
// 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
Yootheme JS Form Input Add Classes
“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
Remove jquery-migrate.js
function dequeue_jquery_migrate( $scripts ) { if ( ! is_admin() && ! empty( $scripts->registered[‘jquery’] ) ) { $scripts->registered[‘jquery’]->deps = array_diff( $scripts->registered[‘jquery’]->deps, [ ‘jquery-migrate’ ] ); } } add_action( ‘wp_default_scripts’, ‘dequeue_jquery_migrate’ );Continue reading
custom_tawkto_user_info_js 2
window.Tawk_API = window.Tawk_API || {}; window.Tawk_API.onLoad = function(){ // Check if the user is logged in by checking if the variables are set if (typeof window.currentUserName !== ‘undefined’ && typeof window.currentUserEmail !== ‘undefined’) { window.Tawk_API.setAttributes({ ‘name’ : window.currentUserName, ’email’ :…Continue reading
JS [Paid Member Subscriptions & Profile Builder]: Updated Video Gallery URL Placeholder Text
// 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
JS [Paid Member Subscriptions & Profile Builder]: Updated Video Gallery URL Placeholder Text
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
JS [Paid Member Subscriptions & Profile Builder]: Return to Last Form Tab on Completed Form Submission
// 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
JS [Paid Member Subscriptions & Profile Builder]: Return to Last Form Tab on Completed Form Submission
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