G
G
Genri_Rus2019-09-04 19:59:02
WordPress
Genri_Rus, 2019-09-04 19:59:02

How to separate archive-product.php from archive.php?

Good day!
I created template-main.php, registered the connection in it

<?php wc_get_template_part( 'archive', 'product' ); ?>

But archive-product.php for some reason picks up the layout from the standard archive.php file
Namely, this wrapper:
<div id="primary" class="content-area">
  <main id="main" class="site-main">
                ...
  </main><!-- #main -->
</div><!-- #primary

I tried to create in the global folder:
wrapper-end.php
wrapper-start.php
But for some reason they are not connected, how to override archive-product.php ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question