• I only want the “site wide banner” picture on my “Home” page but it also appears on all my other pages.
    How do i remove it from all pages and just have it on the “Home page”?
    Appreciate any help with this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • A “site wide banner” is going to be just that… side wide.

    If you want a banner only for your homepage you can set up a homepage template with a file name of front-page.php and add in the image code to that file.

    Of course, this depends completely on how your theme handles all of this, so you may have to do some (or a lot of) theme modifications to get this to work.

    Have a look at is_front_page if you’re implementing yourself in code.

    Another way is to code a homepage specific img in your CSS.
    On your home page the body element has (among others) a class of ‘home’
    (The precise formulation will depend upon which theme you are using.)
    In your “style.css” you will add something like this:

    body.home #header {
        background-image: url("images/fpheaderimg.jpg");
     }

    Use firebug to work out just how your headers are placed. Also you should really only be doing this in your child theme, the smart and experienced operatrors NEVER edit core or theme files.
    I you provide a the address of your website, we could provide more specifics.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Site wide Banner’ is closed to new replies.