M
M
mipfikus2021-01-23 11:02:00
WordPress
mipfikus, 2021-01-23 11:02:00

How to display title on Woocommerce category page?

Hello!
Subject: Customify

You need to display the category title on the category page.

On the Internet, I found a solution specifically for this topic: tyk . Does not help.

The customify/woocommerce/templates/archive-product.php template has these lines:

<?php if ( apply_filters( 'woocommerce_show_page_title', true )) : ?>
    <h1 class="woocommerce-products-header__title page-title"><?php woocommerce_page_title(); ?></h1>
<?php endif; ?>

By scientific poke, I found out that these lines, together with this file, do not affect the output of categories in any way.

Tell me what, where and in which file to add to display the title?

600bd759bad97616696583.png
An example of a page for displaying a title: almextra.ru/product-category/almaznye-koronki/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Litvinenko, 2021-01-24
@mipfikus

If your path to the Customify file at the beginning is the theme directory, then your path is wrong. To override woocommerce templates, you do not need to create a templates folder in the woocommerce folder.
Otherwise, everything is correct, these lines in this file are responsible for displaying the title, including the category.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question