• Resolved nejcox

    (@nejcox)


    Hello.
    The plugin works fine on a product page but doesn’t work when product elemenent is embedded as an Woocommerce element on a standard page. Any ideas?
    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    The plugin js will enqueue in the product page only and don’t enqueue js on every page.

    Inorder to achieve your requirement, please check after adding the below code in your child theme’s functions.php file.

    add_filter('thwvsf_enqueue_public_scripts', 'thwvsf_enqueue_js_custom_page');
    function thwvsf_enqueue_js_custom_page($show){
    if(is_page(Page ID)){
    $show = true;
    }
    
    return $show;
    }

    In the above code, please replace Page ID with your page id.

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Doesn’t work when product element is embedded on a normal page’ is closed to new replies.