Support » Plugin: WPC Smart Compare for WooCommerce » How to integrate with my theme?

  • Plugin Author WPClever


    To integrate with a theme, please use bellow filters to hide the default buttons.

    //hide default compare button on product archive page
    add_filter( 'filter_wooscp_button_archive', function() {
        return '0';
    } );
    //hide default compare button on product single page
    add_filter( 'filter_wooscp_button_single', function() {
        return '0';
    } );

    After that, use the shortcode to display the button where you want.

    echo do_shortcode('[wooscp id="{product_id}"]');

    If have any difficulty, feel free to contact us via contact page then we will do it for you for free 🙂

    • This topic was modified 1 year, 7 months ago by WPClever.
  • The topic ‘How to integrate with my theme?’ is closed to new replies.