Support » Theme: Preference Lite » Header displays only on frontpage.

  • Resolved akinom269



    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!

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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.

    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

    										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

    Theme Author Styled Themes


    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.

    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 🙂

    Theme Author Styled Themes


    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?

    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.

    Theme Author Styled Themes


    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?

    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?

    Theme Author Styled Themes


    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.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Header displays only on frontpage.’ is closed to new replies.