overriding template-homepage.php
-
I’ve copied template-homepage.php to my storefront child theme directory, because I wanted to change the content of it. If i take out for example
* @hooked storefront_on_sale_products - 60
it still shows the On Sale section.I thought it was not overriding the original template-homepage.php, but it does because I’ve added a class name ‘test’ to the main tag
<main id="main" class="site-main test" role="main">
which I can see is added when viewing the source code.So how do I get rid of the On Sale’ section. I can hide it through CSS of course, but I don’t want that.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘overriding template-homepage.php’ is closed to new replies.