Make Blog Posts Equal Height using et_blog_grid_equal_height

// This is for the blog sections to be same height (function($) { $(document).ready(function() { $(window).resize(function() { $(‘.et_blog_grid_equal_height’).each(function() { equalise_articles($(this)); }); }); $(‘.et_blog_grid_equal_height’).each(function() { var blog = $(this); equalise_articles($(this)); var observer = new MutationObserver(function(mutations) { equalise_articles(blog); }); var config =…Continue reading

VGNummer-database-fetch-function-js

jQuery(document).ready(function ($) { var urlParams = new URLSearchParams(window.location.search); var vgNumberFromUrl = urlParams.get(‘test’); // Update URL parameter here if needed console.log(‘VG Number from URL:’, vgNumberFromUrl); if (vgNumberFromUrl) { console.log(‘Starting AJAX request…’); $.ajax({ url: ajaxurl, type: ‘POST’, data: { action: ‘fetch_vg_data’, test:…Continue reading

NextGEN Pro Ecommerce – Move the “Digital Downloads” items to the top of the list in the ecommerce sidebar.

jQuery(document).ready(function() { function executeJS() { jQuery(document).ready(function($) { var $h3 = $(‘#ngg_category_digital_downloads’).prev(‘h3’); var $targetElement = $(‘#ngg_category_digital_downloads’); var $newContainer = $(‘ ‘).append($h3).append($targetElement); $(‘.nggpl-pricelist_category_wrapper’).prepend($newContainer); }); } jQuery(document).on(‘ajaxComplete’, function(event, xhr, settings) { if (settings.url.indexOf(‘GetSidebarData’) !== -1) { executeJS(); } }); if (jQuery(‘#npl_wrapper’).hasClass(‘npl-sidebar-open’)) { executeJS();…Continue reading