Adding bespoke content to category pages

This topic has 4 replies, 2 voices, and was last updated 9 years, 11 months ago ago by Jack Richardson

  • Avatar: alexthekidd
    alexthekidd
    Participant
    June 9, 2014 at 11:20

    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

    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 9, 2014 at 11:49

    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

    Avatar: alexthekidd
    alexthekidd
    Participant
    June 10, 2014 at 12:15

    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

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 10, 2014 at 12:31

    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

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Adding bespoke content to category pages’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.