I should add that the example single post page can be seen here.
http://prints.settleinspain.co.uk/archives/29
Thanks
James
well… that would be the correct conditional for not showing an image on a single post view
Seeing more code would be helpfule…. the code there doesn’t make a lot of sense without the surrounding business….
That is all the code there was in the header file. I thought it looked odd. Could this theme be contolling the header from another file?
http://pastebin.com/Whr17gd5
is header.php of a default f8….. fair bit more code…
the markup of that theme suggests you have an option to turn off the header image on single pages, is that not true?
EDIT… nevermind, I read the option incorrectly. YOu have the option to set a single image OR have a slideshow
http://pastebin.com/zD8Gp1d9
And this should kill the header image entirely for ALL single post views. I think that is what you are after?
We just wrap everything to do with header images in !is_single
Test it, may not be exactly right, I’m just kinda guessing based on the code… haven’t installed the theme to look at it run
Thank you very muc Rev. Voodoo. That seems to work very well and it looks like a normal header.php file too.
Not sure where my header.php came from.
Thanks again.
Best regards
James
Not sure where my header.php came from.
Me neither! And considering when I visited your site…. everything looked fine, and your source code was outputting as expected, that is truly bizarre!
I think I am going to move to the Twenty Eleven theme. I am a newbie at modifying .php files and I think it will be easier for me (there are more pre-written support posts available and I know this theme better).
However, I wanted to try and clarify what I have seen with F8-Lite.
F8-Lite definitely seems to modify the header.php file after it is uploaded to the theme directory. I have checked this twice and I receive a different file back on download compared to the file that I upload. However any customisations made to header.php do take effect.
Process as follows:
1. Save the modified code Rev Voodoo provided as header.php.
2. Uploaded it using FileZilla
3. The appearance of single post pages will be modified as expected (header image removed when viewing single posts)
4. Now if I download the header.php file again I see the ‘short version’ of header.php (provided in my original paste bin above)
5. However the single posts are displayed correctly!
Could this be because I did not set up a child theme?
Should have nothing to do with using a child theme. All a child theme really does is keep your edits safe.
In your circumstance, you would make a child theme, and copy header.php from the parent (f8) to your child. That way, you could modify the header.php in your child theme, and down the road when f8 gets updated, the changes in your child theme would not get overwritten
However, whether you use a child theme, or edit the parent directly, would not account for the strange behaviour you are seeing.
I’ve moved back to Twenty Eleven theme and I am now using a child and things have been going very well. I have not seen the file modification problem since.
I am now in the process of building the site on the final domain name.
http://www.tarlatanas.com
I still have not managed to discover why the header.php file seemed to be modified whilst it was in the wp-content/theme directory. If I do work it out I will let you know.
Thanks again
James