php - My new blog header image is not displaying... How to I correctly write the code? -


from can understand may need modify both header.php file style.css file. i've uploaded image hosting website , believe relative link: (/public_html/wp-content/themes/sandbox/header-1.jpg)

so. style.css code have:

#header { border-bottom:none;     height:200px;     padding-top:0;     padding-bottom:0;     background:url("/public_html/wp-content/themes/kid/header-1.jpg")     no-repeat bottom center; }   #headerimg  {       height: 200px;        width: 800px; } 

this original php in header.php

<div id="header">         <h1 id="blog-title"><span><a href="<?php bloginfo('home') ?>/" title="<?php echo wp_specialchars( get_bloginfo('name'), 1 ) ?>" rel="home"><?php bloginfo('name') ?></a></span></h1>         <div id="blog-description"><?php bloginfo('description') ?></div>     </div><!--  #header --> 

i've tried replacing h1 id , div id lines

<img src= "/public_html/wp-content/themes/sandbox/header-1.jpg"/> 

but wasn't effective.

right website has no header , can seen here: www.dearjasmina.com

thanks time!

the path you're using incorrect. should /wp-content/themes/sandbox/header-1.jpg.

so you're css should read

#header {     height:200px;     padding-top: 0;     padding-bottom: 0;     background:url('/wp-content/themes/kid/header-1.jpg') no-repeat bottom center; } 

Comments