As said in the title, the background images for my website are not appearing. I am very new to wordpress. I have managed to get normal images in the HTML files to appear <img src="<?php echo get_bloginfo('template_url');?>/images/image01.jpg" alt="image description" width="1269" height="441" />
but for some reason, all the images in my css wont appear. I have done some research while trying to fix this problem, the most common answer is to format the css like so:
.logo{
background:url("/images/logo.png") no-repeat; }
but this is not working.
Any help will be appreciated.
Thanks in advance, Tom
EDIT:
link to the stye.css in the header.php
file:
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
Are you using this to import your stylesheet:
it should go in the href tag of the stylesheet link and the style.css file itself should be in the same directory as index.php
Look at the code to be included in your head tag: http://jsfiddle.net/wpWbN/
If You are Creating a theme from the scratch means…
*make sure your background image in image folder within your custom theme folder
*then include the image from your custom theme folder
css file
did you try this?
In my case my code is like the next line
my folders are
It’s possible that the adress in your source attribute is not starting where you think it is (meaning you probably don’t start from the root node). try this:
or this