WordPress.org

Ready to get started?Download WordPress

Forums

Preference Lite
[resolved] Header displays only on frontpage. (11 posts)

  1. akinom269
    Member
    Posted 8 months ago #

    Hello,

    I have the header only on the frontpage. On any other page there is nothing in place where it should be.

    How can I get it to display on each page?

    Any suggestion would be great!

  2. lettergrade
    Member
    Posted 8 months ago #

    The header image should appear on every page with this theme. Have you made changes to the theme?

    Let us know any details about what you might have changed, and provide the url so we can take a look and try to help.

  3. akinom269
    Member
    Posted 8 months ago #

    I've just began my journey with WP so I haven't changed much.

    I had an issue with width and height of the header and I was told to use this

    get_header_image();
    										if ( ! empty( $header_image ) ) : ?>
    										<a>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" style="width:1170px !important;height:265px !important;" alt="" /></a>

    This is basically the only change I've made so far

  4. StyledThemes
    Member
    Theme Author

    Posted 8 months ago #

    It's actually designed that way to only use the WP Header on the front page. However, to have one on each page, use the Showcase Header widget position to load an image or slider on every page. This gives you the ability to show a different one on each page of your site by using a widget and controlling what pages it's seen on by using the Widget Visibility feature of Jetpack or another plugin like Dynamic Widgets, or any other that lets you control where they are published.

  5. akinom269
    Member
    Posted 8 months ago #

    Thank you so much for your reply. Unfortunatly, as a total newbie I had some hard time trying to implement your advice.

    I installed Dynamic Widgets and now I have no idea what to do. I decided I'd like to have one header for all pages and one for a frontpage.

    Could you tell me step-by-step how can I set this?

    I will really appreciate your help :)

  6. StyledThemes
    Member
    Theme Author

    Posted 8 months ago #

    A different one on the front page and another for the rest of the pages of the site? Also, is your blog on the front or inside the site?

  7. akinom269
    Member
    Posted 8 months ago #

    Yes, you're right. One on the front page and another for the rest of the pages.

    I don't really know how to answer your second question :( All I have is a tiny website with a front page and a few other pages.

  8. StyledThemes
    Member
    Theme Author

    Posted 8 months ago #

    When you install WordPress, by default, your front page is your blog home page which is where your blog posts show up. But WP also lets a person change that by making the front page with something else other than the blog posts. Then, your blog posts get moved to another location in your website. So basically your blog posts show up on the front page or they don't.

    What is your site setup to show on the front page, blog posts or an actual page with some kind of different content?

  9. akinom269
    Member
    Posted 8 months ago #

    Firstly, thank you for such a detailed answer.

    I haven't changed anything. My front page is the page where posts show up.

    After I have set a header (in left menu in admin's panel) it shows only on this front page.

    Now I'd like to set a different image as a header for the rest of pages. How can I do this?

  10. StyledThemes
    Member
    Theme Author

    Posted 8 months ago #

    There are different ways of doing what you want but here is one solution:

    1. install a plugin called Widget Logic
    2. install a widget called Image Widget
    3. install a plugin called Remove Widget Titles

    Now for the setup...

    1. Set your WordPress Header image for your front page
    2. Go to widgets in your admin and drag an Image Widget into the Showcase Header widget position. Then use that to upload or select the image you want for the rest of your site pages
    3. Title your widget but put an ! in front of your title (no space between). This will hide the title from showing on the front-end (hence the plugin Remove Widget Titles).
    4. At the bottom of this widget is a field called Widget logic, type in: is_page()

    All done, but one note for you...if you want a full width image in your header showcase area, make it at least 1170 pixels in width. Height can be anything you want, but would recommend not more than 400px.

  11. akinom269
    Member
    Posted 8 months ago #

    Thank you so much! Everything is working now :) Btw I figured out the size of the header from your demo page code :)

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.