WordPress.org

Forums

Luminescence Lite
[resolved] How to make the 'Header' appear on every page? (15 posts)

  1. Jack Chappell
    Member
    Posted 1 year ago #

    Hey guys,

    How can i get the header image on http://www.wellingtontennis.co.uk/wordpress to appear on every page and not just the home page?

    Thanks

  2. knoppys
    Member
    Posted 1 year ago #

    You could take the header off the home page and you effectively have a header on every page.

  3. eddmash
    Member
    Posted 1 year ago #

    add the header image to the header.php file, the header.php file is included in all pages

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    No! Do not edit the theme itself. First create a child theme for your changes.

  5. Jack Chappell
    Member
    Posted 1 year ago #

    Sorry eddmash, may be a stupid question, but how would i do that?

  6. Jack Chappell
    Member
    Posted 1 year ago #

    knoppys - the image below that is there now - on the blog pages sits below the date and page title which is not what i want - obviously i want it above this.

  7. eddmash
    Member
    Posted 1 year ago #

    you will have to create a child theme incase you update it doesnt delete the changes you make,

    i don't have the theme your using but you should find the following file two files header.php and front-page.php

    go inside the front-page.php file and find header_image() function.
    cut the whole code section this function dependent on probably it will be something like
    <img src="<php header_image();>">

    and move it to the header.php

  8. Jack Chappell
    Member
    Posted 1 year ago #

    I don't have a front-page.php

  9. eddmash
    Member
    Posted 1 year ago #

    do you have home.php and index.php ??

  10. Jack Chappell
    Member
    Posted 1 year ago #

    not a home.php but yes an index.php, where i can see: get_header(); ?>

  11. eddmash
    Member
    Posted 1 year ago #

    do you have a templates folder or page template or something similar

  12. Jack Chappell
    Member
    Posted 1 year ago #

    I use a custom CSS plugin

  13. esmi
    Forum Moderator
    Posted 1 year ago #

    You will need to create a child theme for these changes.

  14. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    This theme already has an installable child theme. In the theme itself is a folder named "child-theme" and inside that is a child theme that you can install.

    I created the theme to have the WP header show just on the front page but you also have the option to add the image to the other pages using the banner widget position.

    If you use the child theme to make the modification, you can copy the sidebar-header.php over to the child theme, then remove the php code inside this container:

    <div class="row-fluid">
    </div>

    Replace it with this:

    <?php if ( is_active_sidebar( 'banner' ) ) : ?>
    <aside id="lum-banner" class="span12">
    <?php dynamic_sidebar( 'banner' ); ?>
    </aside>
    <?php endif; ?>
    <?php $header_image = get_header_image();
    if ( ! empty( $header_image ) ) : ?>
    <aside id="lum-wpheader" class="span12">
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="lum-header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php bloginfo('name'); ?>" /></a>
    </aside>
    <?php endif; ?>
  15. Jack Chappell
    Member
    Posted 1 year ago #

    thank you!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic