storefront_homepage hook is not doing anything
-
Hi,
I want to customize the home page of a WooCommerce website with the Storefront theme.
I can’t manage to customize it with thestorefront_homepage
hook.
There is instorefront-template-hooks.php
file the 2 lines below :add_action( 'storefront_homepage', 'storefront_homepage_header', 10 );
add_action( 'storefront_homepage', 'storefront_page_content', 20 );
I tried removing the action and creating my own, but no success, no matter what I do in my custom function. It seems the hook doesn’t do anything :
remove_action( 'storefront_homepage', 'storefront_page_content', 20 );
add_action( 'storefront_homepage', 'custom_storefront_homepage_content', 20 );
I don’t have any problem with other hooks. I can’t find the issue with this one…
Configuration :
WordPress 6.7
Storefront 4.6.0
WooCommerce 9.3.3Hope I can get help.
Thanks!
- You must be logged in to reply to this topic.