admin管理员组文章数量:1287591
I am trying to add my own custom header to twenty seventeen theme i have updated the header file but its only working for front page.I want to add same header to single post page also.But i am unable to locate the single post header.
I am trying to add my own custom header to twenty seventeen theme i have updated the header file but its only working for front page.I want to add same header to single post page also.But i am unable to locate the single post header.
Share Improve this question asked Nov 8, 2017 at 7:02 NasirNasir 11 bronze badge 1- Are you working in a child theme of Twenty seventeen? If so, what files do you have inside your document structure? – klewis Commented Feb 1, 2019 at 16:28
2 Answers
Reset to default 1Firstly, if you have not already created a child theme of the Twenty seventeen theme, i'd recommend doing that first as any updates to the theme will overwrite your changes. See here regarding child themes.
Copy header.php
into your child theme and then add your custom header code into that file.
There is not separate header files for each post type. It's all contained in the one header.php file.
Just rename your edited header file to header.php
so it's called this header on all pages.
本文标签: How to add custom header to Twenty seventeen single post in wordpress
版权声明:本文标题:How to add custom header to Twenty seventeen single post in wordpress 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741237663a2363340.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论