• Resolved free14

    (@free14)


    I want the woof (slideout) filter to be displayed only on the mobile version. And it only appeared on pages with the selected category. Now the main filter works in the widget and widgets logic (is_product_category). I generated a shortcode but I don’t know where to insert it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello
    In content, footer, header, text widget

    To show only on the mobile version – https://c2n.me/48stORQ.png

    Thread Starter free14

    (@free14)

    I’m sorry I didn’t ask the right question. The question is: how and where to insert shortcode [woof_slideout image_h=40 image_w=40 location=right speed=100 action=click offset=100px onloadslideout=false mobile_behavior=1 width=280px ][/woof_slideout] , that would slideout appeared only in categories ?

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Add it to widget.

    To show widget only on category pages use third-party plugins. An example – widget logic

    Thread Starter free14

    (@free14)

    Thank you so much. Didn’t expect such logic. I did through functions (but it shifts the numbers.).
    add_action( ‘woocommerce_after_main_content’, ‘woof_slideout’, 9 );
    function woof_slideout() {
    if ( is_product_category() ) {
    echo do_shortcode( ‘[woof_slideout image_h=40 image_w=40 location=right speed=100 action=click offset=100px onloadslideout=false mobile_behavior=1 width=280px ][/woof_slideout]’ );
    }
    }
    If anyone is interested.

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Great! Thank you for cooperation!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add a shortcode Slideout to show in categories only.’ is closed to new replies.