• Hi,

    I’m trialing out the free version but im having a problem. The plugin seems to be working fine but for some reason it displays on the product page under product description. I dont want it to display here, i only want it to show where i have put the shortcode. Is there some way to remove this from the product page? (ideally php, not just hiding it with css as it increases page load time).

    Thanks ??

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

    (@yithemes)

    Hi,
    yes of course you can do this with custom php snippet.
    So try to add this code on your theme functions.php

    if( ! function_exists('yith_wrvp_remove_single_section') && class_exists('YITH_WRVP_Frontend') ) {
    	add_action( 'template_redirect', 'yith_wrvp_remove_single_section' );
    	function yith_wrvp_remove_single_section() {
    		remove_action( 'woocommerce_after_single_product_summary', array( YITH_WRVP_Frontend(), 'print_shortcode' ), 30 );
    	}
    }

    Let me know, Have a great day. ??

Viewing 1 replies (of 1 total)
  • The topic ‘Remove from product page’ is closed to new replies.