• Resolved dajocka

    (@dajocka)


    Great plugin thanks,

    Problem is it interferes with the woo-commerce shop page layout of my theme.

    Is there a way to disable its js/css on all pages except where the shortcode is?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dajocka

    (@dajocka)

    fixed:

    add_action( ‘wp_print_scripts’, ‘my_deregister_javascript’, 100 );

    function my_deregister_javascript() {

    if ( ! is_page(‘1546’ ) ) {

    wp_deregister_script( ‘wc-category-showcase’ );
    }
    }

    add_action( ‘wp_print_styles’, ‘my_deregister_styles’, 100 );

    function my_deregister_styles() {
    if ( ! is_page(‘1546’ ) ) {

    wp_deregister_style( ‘wc-category-showcase’ );
    }
    }

    Hi @dajocka,
    It is great to see that you have fixed the problem. If there is anything else you need help with, please let us know.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘interferes with woo-commerce’ is closed to new replies.