I am using the Elementor Plugin in WordPress.
I am using a child theme.
In function.php file I have added theme support for woocommerce using add_themesupport('woocommerce')
and create folder name is woocommerce.
I have downloaded archive-product.php file from woocommerce plugin and paste in the theme_name/woocommerce.
I am using Elementor plugin for creating pages.
I want to create a custom design and it is not possible in the elementor.
so I have to override archive-product.php file but it is not working.
When I deactivate Elementor, my template override page is working.
can you please help how can I customize archive-product.php file with elementor?
Thank you in advance.
2
Answers
It may be an issue related to this (from the Woocommerce documentation):
You can check the complete template documentation here: https://docs.woocommerce.com/document/template-structure/
What helped me was this piece of code (add it to your functions.php):
This function is used to customize the WooCommerce product post type archive page template. It checks if the archive is for the product post type, and if it is, it looks for a custom archive-product.php template file in the theme folder. If the file exists, it loads the custom template instead of the default WooCommerce template. This function is necessary if you want to customize the product archive page template in your theme.