Remove header image on image post pages in Wordpress
August 24, 2012 10:19 AM Subscribe
Wordpress: help me get rid of the header image on image post pages.
I'm in the process of learning to edit Wordpress themes and I'm stuck on a particular problem: how get rid of the header image on image post pages.
Currently, when a thumbnail for an image is clicked you are then brought to a page with the image at full size. But, because of the large header image, you have to scroll down a bit to see it - clunky. I want to remove the header image on those pages (and only those pages).
The URL for the website I am working on is in the About section of my profile if you want to take a peek. I'm using a child theme based on TwentyEleven.
I did already post this question to the Wordpress forums a bit ago and have not yet heard back.
posted by jammy to computers & internet (3 answers total) 2 users marked this as a favorite
$header_image = get_header_image();if ( $header_image ) :
and replace it with:
$header_image = get_header_image();
if ( $header_image && !is_attachment()) :
posted by Memo at 10:56 AM on August 24, 2012 [1 favorite]