• I am brand-new to WordPress, and I’m using WP Weaver to build my online portfolio. I’ve been uploading images of my work into galleries. This has worked great, except for one thing: The header image is displaying on the attachment pages, where individual full-size images of my work are displayed.

    How do I remove/hide the header image on the attachment pages? On the pages where I inserted the galleries, I’ve hidden the header image in the the easy page creator/editor. I don’t see any easy editing options for the attachment pages. I assume that I’ll have to go into a php file…I’ve looked at attachment.php, but really, I have no idea what most of it means. I’ve tried removing a few sections of code one at a time to see what it does, but that hasn’t accomplished anything close to what I want.

    I would love to have a solution to this problem! If anyone can tell me which php file I need to change and precisely what code to change, that would be extremely helpful. Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Can you post a link to your site?

    Thread Starter erly27

    (@erly27)

    Sure. It’s ecriderdesign.com.

    Click on Portfolio, pick any category, and click on a thumbnail. You’ll get to the full size image and see my problem: Big header image across the top, and my artwork image underneath.

    Try changing line 144 in your theme’s header.php from

    if (!weaver_is_checked_page_opt('ttw-hide-header-image')) {

    to

    if ( !weaver_is_checked_page_opt('ttw-hide-header-image') && !is_attachment() ) {
    Thread Starter erly27

    (@erly27)

    Thank you so much! That’s exactly what I needed. I appreciate your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Header image appearing on attachment pages’ is closed to new replies.