WordPress.org

Ready to get started?Download WordPress

Forums

header problems (7 posts)

  1. evilstartswith4
    Member
    Posted 7 years ago #

    I looked at the page that tells me how to add a banner to the header, and did it.

    So instead of `#header {
    background: url("<?php bloginfo('stylesheet_directory'); ?>/images/wc_header.jpg")
    no-repeat bottom center; }
    #headerimg {
    margin: 7px 9px 0;
    height: 192px;
    width: 740px; }`

    
    I have #header {
            background: url(\"<?php bloginfo('stylesheet_directory'); ?>http://i7.photobucket.com/albums/y256/LOST_IN_PA/airplane3-5.jpg\")no-repeat bottom center;
            }
    #headerimg  {
      margin: 7px 9px 0;
      height: 192px;
      width: 740px; }
    

    yet nothing as changed. Whats wrong?

  2. halfbloodprince
    Member
    Posted 7 years ago #

    Try doing this:

    #header {
            background: url(http://i7.photobucket.com/albums/y256/LOST_IN_PA/airplane3-5.jpg) no-repeat bottom center;
            }

    Your image is stored on photobucket and not in your theme folder, so you don't need to add the <?php bloginfo('stylesheet_directory'); ?> bit.

  3. Chris_K
    Member
    Posted 7 years ago #

    Side question: Will photobucket allow hot-linking like that?

  4. obscure
    Member
    Posted 7 years ago #

    Is there any reason not to store it on the hosting machine? Surely that would load quicker than an image on photobucket?

  5. evilstartswith4
    Member
    Posted 7 years ago #

    I uploaded the image to my site, and put that in, but it still won't work.

  6. obscure
    Member
    Posted 7 years ago #

    I have #header {
    background: url(\"<?php bloginfo('stylesheet_directory'); ?>http://i7.photobucket.com/

    You appear to have added a \ in there. Could that be upsetting it?

  7. Chris_K
    Member
    Posted 7 years ago #

    (the silly forum software here probably added that \ in front of the double-quotes.
    Reported bug)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags