In Settings/Reading I set Testimonials as post page.

How can I change the header of that page?

  • I'm using condoma theme – winresh24 Jul 23 '13 at 7:52

You could use a template. You just have to copy the file header.php and call the new file with the slug of the page testimonials. It would require 2 new files :

header-testimonials.php and front-page.php.

then you can call your custom header with get_header('testimonials');

See the template hierarchy. Just be sure Testimonials is your front page.

EDIT: Regarding front page (1rst page of the site) WP looks into your theme and the first file to be called is front-page.php. Most of the time WP blogs set front page as posts page (reading settings).

Here your can set another file as custom header and call it in front-page.php it will be called on front page automatically.

You could also insert some conditional tags in the main header.php but it's better to use front-page.php when cutomizing front page.

  • Hi, Thanks for the reply. I have already the replace the home page. What I happen is to use the default post page and change its header. Can you elaborate it more because I'm a newbie in wordpress. Thank you – winresh24 Jul 23 '13 at 10:18
  • sure I'm editing – JMau Jul 23 '13 at 10:33
  • Wow your great dude! Thanks, you save my day. God bless you. Thanks! – winresh24 Jul 23 '13 at 10:43

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.