Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

In Settings/Reading I set Testimonials as post page.

How can I change the header of that page?

share|improve this question
    
What theme are you using? –  Sven Jul 23 '13 at 7:00
    
I'm using condoma theme –  winresh24 Jul 23 '13 at 7:52

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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