Background images not showing
-
I’ve downloaded wordpress to my computer and am trying to make a theme from scratch. I cannot get any background images to show up. I’ve made a folder inside my theme folder named images. One example is my header image, in my style.css I used:
#header{
margin: 0;
border: 0;
padding: 0;
float: left;
width: 750px;
height: 124px;
background-image: url(‘<?php bloginfo(‘stylesheet_directory’); ?>/images/navigation_top.jpg’) no-repeat top left;
font-family: “Baskerville Old Face”, “Times New Roman”, Serif;
font-size: 1em;
}and in my header.php:
<div id=”header”>
< ul > (without the spages)
<?php wp_list_pages(‘depth=1&title_li=’); ?>
< /ul >
</div> <!–id header–>I cannot get the background image to show up anywhere else either. I have tried inside body{} and other divs.
However when I use the image tag, for example:
<img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/navigation_top.jpg” />
It is working fine. Please help.
- The topic ‘Background images not showing’ is closed to new replies.