A
A
Ajax2018-08-05 19:22:25
WordPress
Ajax, 2018-08-05 19:22:25

How to display different categories on different pages?

Hello.
Please tell me how to display different product categories (widget) on different pages.
For example, on the page - Windows, I need to display categories (on the left in the "product categories" widget): Wooden windows, Plastic windows, etc.
And on the page - Doors, I need to display categories: Iron doors, Wooden doors. And at the same time, the categories of "windows" were hidden.
How the widget of product categories looks like:

spoiler
5b67243e1114f424818735.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-08-05
@azerphoenix

Hello!
If we are talking about widgets, then there is the Widget Logic plugin.
Explore Wordpress && Woocommerce Conditional Tags
https://codex.wordpress.org/Conditional_Tags
https://docs.woocommerce.com/document/conditional-tags/
https://wp-kama.ru/id_89/uslovnyie-tegi-v -wordpres...
And then deprecate the check in the widget
. Another option.... edit the theme template and again use conditional tags to connect this or that sidebar. Sidebars must be created in functions.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question