This topic has 4 replies, 2 voices, and was last updated 10 years, 6 months ago ago by Jack Richardson
Hi,
I am looking to add bespoke content (text, images etc) onto the category pages of my website.
An example of one of these category pages can be found here http://www.thefloorhut.co.uk/category/karndean/
With other WordPress themes in the past, I use to copy the category.php file located in the theme folder and then add -[SLUG] to give me a new file called category-[SLUG].php
I tried to do the same with the Blanco theme but it doesn’t seem to be working for me. I am looking to add dense content onto the category pages but I am struggling to do this.
Does anyone know a way I can add my own content to the bottom of pages and inject it onto the PHP?
Thanks,
Alex
Hello,
This is works for blog, but not for WooCommerce categories.
In the case if you want to do custom WooCommerce categories pages you can use WP Conditional Tags in blanco/woocommerce/archive-product.php file.
Regards,
Jack Richardson
Thank you for the quick response Jack.
Do I need to add the Conditional Tags onto the archive-product.php files or do I need to duplicate the .php like I was doing on the blog categories? e.g. archive-product-[SLUG].php
Kind Regards,
Alex
Hello,
You need to add conditional tags exactly into the archive-product.php file. Also keep safe copy of edited file to don’t lose your changes after theme upgrading.
Also you can create a Child theme and copy there edited files.
Regards,
Jack Richardson
The issue related to '‘Adding bespoke content to category pages’' has been successfully resolved, and the topic is now closed for further responses