YB Settings

function impBrandsArchive( $query ) { $query->set( ‘post_type’, [ ‘hot-tubs’, ‘swim-spas’, ‘saunas’ ] ); } add_action( ‘elementor/query/brands_archive’, ‘impBrandsArchive’ ); /** * Action: ‘rank_math/vars/register_extra_replacements’ – Allows adding extra variables. */ add_action( ‘rank_math/vars/register_extra_replacements’, function(){ rank_math_register_var_replacement( ‘dealer_currency’, [ ‘name’ => esc_html__( ‘Dealer Currency’, ‘rank-math’…Continue reading

AR iFrame Snippet 2.0

function impDisplayARWrapperIframe() { $post_id = get_the_ID(); $product_ar = get_post_meta($post_id, ‘product_ar_iframe’, true); if(!empty($product_ar)) { $html_code = ‘‘; } else { $product_ar = get_post_meta($post_id, ‘ar_code’, true); $html_code = ‘‘; } return $html_code; } add_shortcode(‘display-ar-wrapper-iframe’, ‘impDisplayARWrapperIframe’); function impDisplayARWrapperIframeMassagechairs() { $post_id = get_the_ID(); $product_ar…Continue reading

Footer

/* * MS GROUP WEBSITE — VERSION B * JavaScript — Scroll Reveal Animations * ============================================================ * Uses IntersectionObserver to fade elements up on scroll. * In WordPress, this can be replaced with: * – Elementor entrance animations (built-in) *…Continue reading

Yootheme Consent – Scroll block

/* When the consent banner is present, lock the viewport */ html:has(.tm-consent), body:has(.tm-consent) { overflow: hidden !important; height: 100% !important; position: fixed; /* Extra insurance to lock mobile scrolling */ width: 100%; } /* Your red overlay */ body:has(.tm-consent)::before {…Continue reading