• Resolved travelavenger

    (@travelavenger)


    Hi there,

    I am using a common wordpress theme (not storefront) for my woocommerce and I am wondering which files in the theme should I alter in order to change the view of product category and product page?

    I tried to change the code at the archive.php but the product category page has no effect.

    Please advise, thank you for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • OC2PS

    (@sooskriszta)

    For themes without product templates, WooCommerce comes with stock templates. I think you may be looking for

    content-product-cat.php
    Thread Starter travelavenger

    (@travelavenger)

    Thank you very much for the solution. I am using a child theme, should i place a copy of the file content-product-cat.php at the root level of the child theme folder?

    Hi @travelavenger

    Copy the template into a directory within your theme named /woocommerce keeping the same file structure but removing the /templates/ subdirectory.

    Example: To override the admin order notification, copy: wp-content/plugins/woocommerce/templates/emails/admin-new-order.php to wp-content/themes/yourtheme/woocommerce/emails/admin-new-order.php

    The copied file will now override the WooCommerce default template file

    Warning: Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost.

    You can find more details about this at?Template structure & Overriding templates via a theme – Documentation.

    Thanks!

    Thread Starter travelavenger

    (@travelavenger)

    Thank you so much for the detail explanation! Helped me to solve the issue!

    You’re welcome @travelavenger glad to know it’s working fine now. If you have any new question, please open a new ticket.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customize woocommerce product category and product page’ is closed to new replies.