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
Add a comment  | 

2 Answers 2

Reset to default 1

Firstly, 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