Different page layouts for category vs subcategory?
-
Hello!
I would like to use one page layout to show all of the subcategories to a category, then a different layout for the subcategory that will show all the products.
Or said another way:
I have a main category of “wedding.”
I have a subcategory of wedding called “modern.”I would like the main category “wedding” (or any other main category) to have one page layout, then when selecting “modern” (or any other subcategory) it will have a slightly different layout.
My test link (note that things are changing RAPIDLY on this site): https://test.januarycreative.com/invitation
I would like the “wedding invitation” main category to have a layout like it is now, and the “modern” subcategory have a description on the right side of that large image.
Background: I am using modified Woocommerce theme files that I have in my custom WordPress theme. These files are in mytheme/woocomerce/
Currently, the archive-product page is dictating how the category page will look and the subcategory page will look.
Is there any way to be able to have two different page layouts? Ideally, if I can tell Woocommerce that “if this is a main category page, do this, else, do this.”
Can anyone help me do this?
- The topic ‘Different page layouts for category vs subcategory?’ is closed to new replies.