admin管理员组文章数量:1289857
I want to remove get_header and get_footer conditionally and temporary from all single pages with functions.php
i tried this remove action with conditions code but not works..
remove_action('get_header', 'wpx_remove_header', 1)
please suggest me best way to do that..
I want to remove get_header and get_footer conditionally and temporary from all single pages with functions.php
i tried this remove action with conditions code but not works..
remove_action('get_header', 'wpx_remove_header', 1)
please suggest me best way to do that..
Share Improve this question asked Jul 7, 2021 at 15:01 user208353user2083531 Answer
Reset to default 0I am unsure how your site is set up, but typically the get_header and get_footer is called in a template file. If you are using the typical template hierarchy, then your single pages are using single.php and both get_header and get_footer can simply just be removed from that php file.
本文标签: How to remove getheader From all single pages in wordpress with functionsphp without plugin
版权声明:本文标题:How to remove get_header From all single pages in wordpress with functions.php without plugin? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741458350a2379888.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论