Type: js
JS [GridBuilder Cards]: Display Parent Taxonomy Terms
// This script is designed for use with the Gridbuilder plugin, specifically targeting // the ‘Vendor Archive Card’ and ‘Tall Vendor Card’ card layouts. Its primary function is to // address a limitation within Gridbuilder’s native handling of taxonomy terms…Continue reading
JS [GridBuilder Cards]: Display Parent Taxonomy Terms
// This script is designed for use with the Gridbuilder plugin, specifically targeting // the ‘Vendor Archive Card’ and ‘Tall Vendor Card’ card layouts. Its primary function is to // address a limitation within Gridbuilder’s native handling of taxonomy terms…Continue reading
JS [Category Posts]: Remove Vendor Query Loop Based on Post Location if Empty
document.addEventListener(‘DOMContentLoaded’, (event) => { // Check if there’s a div with the class ‘wpgb-card-wrapper’ and “Sorry, no content found” text const cardWrapper = Array.from(document.querySelectorAll(‘.wpgb-card-wrapper’)).find(div => div.textContent.trim() === “Sorry, no content found.”); // If the div is found, remove the element…Continue reading
JS [Category Posts]: Remove Hyperlinks While Preserving Content
// Temporary Fix for GridBuilder and Zeen Theme Compatibility Issue // This script addresses a specific issue where images within GridBuilder cards fail to load // correctly on pages or posts that incorporate Zeen theme styling. This problem is suspected…Continue reading
JS [Category Posts]: Remove Hyperlinks While Preserving Content
// Temporary Fix for GridBuilder and Zeen Theme Compatibility Issue // This script addresses a specific issue where images within GridBuilder cards fail to load // correctly on pages or posts that incorporate Zeen theme styling. This problem is suspected…Continue reading
Meta Lead Gen Pixel
JS [Post Category]: Reload Vendor Taxonomy Term When URL is Changes (Post Category Filtering)
// Sample URL: https://update.loveincmag.com/category/real-weddings/ // // This logic is a bandaid (aka, duct tape) fix to forcefully load a URL path upon filter selection. // Preferred logic would be dynamic update of content (in place) via AJAX versus forceful navigation…Continue reading
Equal Height
Test Pricing js
document.addEventListener(“DOMContentLoaded”, () => { // Initialize drag and drop for filters initializeSortableFilters(); // Attach event listeners to locale links const localeLinks = document.querySelectorAll(‘#locales a’); localeLinks.forEach(link => { link.addEventListener(‘click’, handleLocaleLinkClick); }); // Populate the product table on initial load populateProductTable(); //…Continue reading