你知道任何钩子或过滤器来删除StoreFront主题首页上的 Headers 吗?
我尝试了几种解决方案,但没有任我使用Storefront的主题孩子(Woothemes的文具) .
谢谢你的帮助 .
尝试将此代码添加到 functions.php :
functions.php
if ( is_front_page() ) { remove_action( 'storefront_page', 'storefront_page_header' ); }
这应该删除(和包括)之间的所有内容:
<header class="entry-header"> <?php storefront_post_thumbnail( 'full' ); the_title( '<h1 class="entry-title">', '</h1>' ); ?> </header><!-- .entry-header -->
我google了解更多细节 . 请试试这个
if ( is_page('page id') ) { add_filter( 'the_title', '__return_false' ); }
2 回答
尝试将此代码添加到
functions.php
:这应该删除(和包括)之间的所有内容:
我google了解更多细节 . 请试试这个