ANDRITZ Navigation Panels

document.addEventListener(“DOMContentLoaded”, function () { const triggers = document.querySelectorAll(“.bp-andritz-utility”); const panels = document.querySelectorAll(“.bp-andritz-panel”); const closes = document.querySelectorAll(“.bp-andritz-close”); const backs = document.querySelectorAll(“.bp-andritz-back”); function closeAllPanels(){ panels.forEach(panel => panel.classList.remove(“bp-open”)); document.body.classList.remove(“bp-andritz-active”); } triggers.forEach(trigger=>{ trigger.addEventListener(“click”,function(){ const target = document.getElementById(this.dataset.target); const isOpen = target && target.classList.contains(“bp-open”); closeAllPanels();…Continue reading

Exclude Specific Products from Parent Category

/** * Exclude specific products from appearing in their parent category. */ add_action(‘woocommerce_product_query’, ‘exclude_specific_products_from_parent_category’); function exclude_specific_products_from_parent_category($q) { // Only apply this on the parent category archive page if (!is_product_category(‘telt-og-pavilloner’)) { // Replace with your parent category slug return; } //…Continue reading