Display Header Image only if the current Page/Post has a Featured Image.
Sorry if this has already been covered in the forum.
I have a question about controlling the display of featured images and header images.
I’m using twentyeleven 3.5.1 (child)
I assume I need an ‘ if ‘ statement in my header to display the Featured Image in the ‘Header Image’ area ONLY if the Page or Post has a featured image populated. By default WordPress will hide all featured images from the header image container on pages and posts if the “remove header option” is activated in the theme options. It would be ideal to be able to have this switched off, but also have the option to display featured images on pages and posts that have them.
Any references would help a lot.. Thank You! 🙂
- The topic ‘Display Header Image only if the current Page/Post has a Featured Image.’ is closed to new replies.