Home > Net >  How to remove a page component on Wordpress?
How to remove a page component on Wordpress?

Time:10-07

enter image description here

How can I remove the product images under the Filter by price section? I don't know how can I edit this template.

CodePudding user response:

In your theme, check the archive-product.php file. The image you want to change is probably in another template part, but start looking from there.

CodePudding user response:

Your question has more to do with the theme templates you're using than WooCommerce.

WooCommerce has templating override capabilities so that would be the first place to look. You can easily copy a template file to a child theme and change it however you want. Do not, however, change the file directly in the parent theme or it may be overwritten when you update (unless you've written your own theme and don't update from a third-party).

More information on WooCommerce templates can be found in their documentation:

https://woocommerce.com/document/woocommerce-theme-developer-handbook/#section-9

But you should have a proper understanding of WordPress template hierarchy first:

https://developer.wordpress.org/themes/basics/template-hierarchy/

  • Related