• Resolved magapascansky

    (@magapascansky)


    Hello!

    I am developing my own woocommerce site and I am having trouble editing the category template. I made a shop template that is shown in https://dacre.shop/shop/ and I want to display the categories the same way.

    Now I have customs url in my menu to show the categories, but I want to put them as “Woocommerce categories”, but it is shown with what I found is on the wp-includes/category-template.php.

    I tried ovewriting this file with my shop template but it shows an error. How can I solve this?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @magapascansky,

    Editing the category template can sometimes be a bit tricky. It looks like you’re trying to customize the style of your WooCommerce categories to match your shop template. However, directly editing the category-template.php file in the wp-includes folder isn’t recommended, as it can lead to errors and may be overwritten during updates.

    A more effective approach is to create a custom template file in your theme’s WooCommerce folder. This file can be named taxonomy-product_cat.php and will be used to display product categories. You can copy the contents of your shop template into this file and make any necessary adjustments.

    More info: https://woo.com/document/template-structure/#how-to-edit-files

    If you’re uncomfortable doing this yourself, you can seek help from the following:

    I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.

    Thread Starter magapascansky

    (@magapascansky)

    that worked!! thank you very much ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category template’ is closed to new replies.