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

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