Home › Forums › WoodMart support forum › Product Category Not Using Layout Template
Product Category Not Using Layout Template
- This topic has 9 replies, 2 voices, and was last updated 2 hours, 58 minutes ago by
gardenadventure.co.uk.
-
AuthorPosts
-
October 10, 2025 at 1:51 pm #690088
gardenadventure.co.ukParticipantI have created a layout for a woocommerce category and used the Conditions to select only those products in a particular category, but the layout is not being used by the category.
The slug for both category and layout page are the same .
How do you associate a layout page with a category ?
I have other category / layout pages that work fine.October 10, 2025 at 7:08 pm #690229
Hung PhamKeymasterHi gardenadventure.co.uk,
Thanks for reaching to us.
To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.
Regards,
Hung PDOctober 10, 2025 at 7:35 pm #690245
gardenadventure.co.ukParticipantSure, will do.
This url is also not behaving :
https://logcabinkits.co.uk/cabins-under-2-5mOctober 13, 2025 at 9:16 am #690514
Hung PhamKeymasterHi gardenadventure.co.uk,
Thanks for your patience and details.
Please allow me to explain: The custom layouts’s conditions applied to specific terms / products it also means Product Category will use default layout.
So, you need to build custom general layout for Product Categories only.
Regards,
Hung PDOctober 13, 2025 at 9:51 am #690526
gardenadventure.co.ukParticipantThanks – but sorry, I don’t understand your reply ?
Can you try and explain in a different wayOctober 14, 2025 at 8:34 am #690723
Hung PhamKeymasterHi gardenadventure.co.uk,
Sorry for my bad.
I will try to explain it better: I checked the Conditions, and figured out these applied to specific terms, such as: attributes or tags, etc…
So, if you want to build custom layout for Product Categories only, you just need to set Conditions to
Product Categories
only.Regards,
Hung PDOctober 14, 2025 at 10:44 am #690768
gardenadventure.co.ukParticipantAh ok, that makes sense – but then how does a layout template pick up only one category ?
October 14, 2025 at 10:52 am #690770
gardenadventure.co.ukParticipantAnd another question – if you look at the settings for this url :
https://logcabinkits.co.uk/garden-offices
You will see that the conditions are “Product Term” = “Garden Offices”
In Layouts, the title is “Single Cat – Garden Offices” with the slug “product-archive-offices” and yet in the Categories settings, the slug for Garden Offices is “garden-offices” !!October 15, 2025 at 11:01 am #690972
Hung PhamKeymasterHi gardenadventure.co.uk,
Thanks for your patience.
Please allow me to explain: You see the
slug because
Layouts
is also Custom Post Type, so it has its own slug. It means: https://ibb.co/j9p7r6nZWhen you set Conditions, it will be applied to Product Categories – which part of WooCommerce. So, you need go to WooCommerce > Products > Categories > edit the category to change the slug https://ibb.co/N69m0DG9
Regards,
Hung PDOctober 15, 2025 at 8:24 pm #691101
gardenadventure.co.ukParticipantBut all the slugs for an individual layout and category align – Some category pages work as intended, others don’t and use a generic layout template
-
AuthorPosts
- You must be logged in to create new topics. Login / Register