• Have searched the forums but can’t find an answer for this one. I’m trying to convert my XHTML document into a WP theme and find that when I add the following code to my index.php document…

    @import url(“<?php bloginfo(“stylesheet_url”); ?>”);

    …and then view the site, my background images and page logo all disappear. Basically anything stored in my images file.

    I’ve gone back and tweaked a load of stuff, the css and resaved all the images but it doesn’t make any difference. I’d be grateful if someone could please tell me what they think is happening.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try using:

    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />

    Thread Starter Jenxlilac

    (@jenxlilac)

    Thank you very much. Unfortunately, it hasn’t made any difference.

    Is this index.php file part of your WP theme?

    Thread Starter Jenxlilac

    (@jenxlilac)

    Yes. I’ve just been playing with putting the image into the header part of the css instead of into the index.php. I found another theme that had a similar layout but no matter how I phrase the css background, nothing appears.

    A link to your site might help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘adding php code makes my images vanish’ is closed to new replies.