• Resolved annieaan

    (@annieaan)


    Hi!

    I want to edit the WooCommerce category page template, but I can’t find the correct file.
    This is the part displayed at the top of the WooCommece shop – category page (the page displaying all the products):

    <h1 class="page-title">category name</h1>
    <div class="term-description">
        <p>category description</p>
    </div>

    I want it change it in the php file by adding a file to my child theme.
    I am using the twenty seventeen theme with a blank child theme.

    Does anyone know where I can find the file to edit this?

    Kind regards Annie

Viewing 2 replies - 1 through 2 (of 2 total)
  • The template file is archive-product.php, but the approach would be to remove the action that leads to the category description:
    remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );

    and put in an add_action() to point to your custom code instead. The remove, add and custom code would go in functions.php for your child theme, so no need to edit the woocommerce template. If you did so, you would need to update your template whenever WooCommerce update the master.

    Thread Starter annieaan

    (@annieaan)

    Hi @lorro,

    Okey. Great, thank you so much! ??

    Kind regards Annie

    • This reply was modified 6 years, 7 months ago by annieaan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Edit WooCommerce category page template’ is closed to new replies.