Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello

    Now i can only choose the sidebar for all my pages and not just for the one on the productpage i want it to be on. – how to make the sidebar only for products pages – it’s a matter for your current theme.Depending on the selection of page templates in this theme. Read this please – https://www.ads-software.com/support/topic/hide-sidebar-on-pages?replies=5

    I can offer a solution to display products on different pages and how to display widgets only those pages:

    1) In category pages use shortcode – [woof_products] which attribute : taxonomies=product_cat:X Where X id your product category.

    2) In widgets use shortcode [woof] which attributes : * taxonomies=product_cat:X
    tax_only – write taxonomies or products slug using comma
    by_only – write any by-filter-elements there using comma: by_text,by_price,by_sku,by_author,by_insales,by_instock. Of course firstly user should enable extensions for that by-filter-elements

    *- Do not forget set the same condition in [woof_products]

    3) For show or hide widgets on different pages – https://www.woocommerce-filter.com/how-to-show-or-hide-widget-only-on-selected-site-pages/

    You can read more about shortcodes – https://www.woocommerce-filter.com/documentation/#!/section_3_1

    Thread Starter sjoerd89

    (@sjoerd89)

    Thanks for your reply, i really have to sit down for this 1 ;).

    So i have 2 categories made and the products in the correct category.
    Now i have to make 2 pages (1 for each category) and have my shop page redirect to those pages when they click on one of those categories correct? (Not sure how to redirect is tho)

    On the page itself i use the sidebar with shortcode and hide the one not being that category. Is this correct or am i thinking totally wrong here.

    Hello
    Not sure how to redirect is tho – You can add links to these pages anywhere for example in the menu. (without shop)

    If you use 2 page, create 2 text widget and put in these widgets shortcodes [woof] which taxonomies=product_cat:X
    where X is different for each widget, depending on page.
    For show or hide widgets on different pages – https://www.woocommerce-filter.com/how-to-show-or-hide-widget-only-on-selected-site-pages/

    Thread Starter sjoerd89

    (@sjoerd89)

    With alot of playing with the shortcodes i managed to figure it out,
    thanks alot for your help!

    Have a great day,
    Sjoerd

    Hello
    Welcome;)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘2 Pages, 1 left sidebar?’ is closed to new replies.