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.

  • Are you working in a child theme of Twenty seventeen? If so, what files do you have inside your document structure? – klewis Feb 1 '19 at 16:28

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.

| improve this answer | |

Just rename your edited header file to header.php so it's called this header on all pages.

| improve this answer | |
  • I have done that already but its working on front page only.I think there is something else for single post/page. – Nasir Ullah Nov 9 '17 at 10:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.