• Resolved redfox89

    (@redfox89)


    Hi!

    I’m working with a new website and I’ve got such problem: the header is only placed on the main paige. When I go to posts or to pages it dissapears. Is it possible to have this header on all pages in this motive? Should I add additional CSS?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • siniplyrathemes

    (@siniplyrathemes)

    Hello and thank you for contacting us.

    I’ve tried to visit your website using the link you’ve provided, but unfortunately it gives “Address not found”. ??

    Could you doublecheck your url please?

    Theme Author lyrathemes

    (@lyrathemes)

    @redfox89 Also, the header only shows up on the home page by design. If you want to show it on internal pages as well, you’ll need to modify the theme files in order to incorporate that functionality.

    @lyrathemes
    I am having a similar issue. I have downloaded WP Display Header and it seems to be interacting with Kale on the main page, but not any other pages (which is why I downloaded it- to get different headers on specific pages).

    What exactly would I need to modify in the theme files to override the ‘header only on home page by design’ issue?

    Thank you.

    Hi @geetsdeets,

    In order to display header image on all pages you need to modify hearer.php file. Change these lines:

    <?php if(is_front_page() && !is_paged() ) { 
    get_template_part('parts/frontpage', 'featured'); 
    } ?>

    to this:

    <?php
    get_template_part('parts/frontpage', 'banner');
    
    if(is_front_page() && !is_paged() ) {
    get_template_part('parts/frontpage', 'featured');
    } ?>

    Please this only allows you to display the same image on all pages. If you need to display different images you need a lot of customization.

    Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add header to all pages’ is closed to new replies.