Support » Fixing WordPress » How do I show banner on every page

  • Resolved kinkyvampire

    (@kinkyvampire)


    I have used other codes on forums but none seem to be working

    this is the code I’m using to show my banner on the homepage

    <a href="http://kv.redstarnetworks.co.uk/"><img src="wp-content/themes/devart/images/kinky_vampire_banner.gif" align="center"></a>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hard to say without a link to your site, and you don’t actually say what your problem is, so it’s really difficult to help.

    Looking at your code, though, I’d say that WP can’t find the image.

    Cheers

    PAE

    Thread Starter kinkyvampire

    (@kinkyvampire)

    oh sorry! haha. it’s here
    It shows on the homepage just not the others.

    The #header has a background image:

    #header {
      background: url("images/Kinky_vampire_banner.gif") no-repeat scroll center center transparent;
      float: left;
      height: 46px;
      position: relative;
      width: 900px;
    }

    WP can’t find this because the file isn’t called Kinky_vampire_banner.gif. It’s called “kinky_vampire_banner.gif”. So if you just put the case right, you’ll get the background image. However, you’ll also see only the top 46px of the image because its parent element is only 46px high. If you change the rule to look like this:

    #header {
      background: url("images/kinky_vampire_banner.gif") no-repeat scroll center center transparent;
      float: left;
      height: 150px;
      position: relative;
      width: 900px;
    }

    … you’ll get more what you’re looking for. You may have to give the the #header element some padding and/or margins to create any space you want between it and other elements. it might also allow you to get rid of all those <br> elements that are both extremely bad practice and possibly invalid for the doctype.

    You’ll also be able to get rid of the foreground image on the home page, because the background image will now show.

    HTH

    PAE

    Thread Starter kinkyvampire

    (@kinkyvampire)

    I love you lol I’m such a n00b thanks ^^

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I show banner on every page’ is closed to new replies.