Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Alexander Agnarson

    (@alxmedia)

    Hi there,

    Try editing header.php with a child theme and locate this on line 98:

    
    <?php if ( get_theme_mod('profile-image') || get_theme_mod('profile-name') || get_theme_mod('profile-description') ): ?>
    

    Before this, add:

    
    <?php if ( is_home() ) : ?>
    

    And then locate this on line 113:

    
    <?php endif; ?>
    

    And add another of this below it:

    
    <?php endif; ?>
    

    This will hide it from all pages except for home. If you want to control more specifically which pages for it to appear on, you can use css instead. Like:

    
    #profile { display: none; }
    body.home #profile { display: block; }
    

    That there does the same thing as the php code above.

    Thread Starter shiveshssj

    (@shiveshssj)

    The code works but it leaves empty space at the top: https://imgur.com/a/BwELgc4

    It might be happening because of the ‘page-title group’ in page-title.php, but I’m not so sure.

    Can you help me with this? Thanks in advance!

    Theme Author Alexander Agnarson

    (@alxmedia)

    As you say, it is because of the page title.

    Try adding this additional css:

    
    body.home .page-title { display: none; }
    
    Thread Starter shiveshssj

    (@shiveshssj)

    That doesn’t help; the space is still there.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show header image and description only on home and about-me page?’ is closed to new replies.