Support » Themes and Templates » Stylesheet not working for theme

  • marcyella

    (@marcyella)



    I made a simple theme and I could not get the stylesheet to work.

    This is what I have:

    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” />

    It should link to the style.css in the theme’s folder, right?

    I also cannot get any of the images to load.

    <img src=”images/banner.jpg” alt=”banner” />

    I assumed that I didn’t have to put the whole URL if it is in the same folder.

    Thank you in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Michael

    (@alchymyth)

    for the images, try and use:

    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/banner.jpg" alt="banner" />

    the stylesheet code loooks ok, however, there can be other reasons why the styles are not applied;

    can you post a link to your site?

    marcyella

    (@marcyella)

    I tried the image code and it still does not work.

    Here is a link to my site:

    http://www.davisivcf.org/testing/

    Michael

    (@alchymyth)

    the stylesheet seems to be working (?)

    the image is not stored where you think it is; or where the image url points to;
    definitvely not here:
    /testing/wp-content/themes/IV2/images/iv2.jpg

    marcyella

    (@marcyella)

    I don’t see the stylesheet at all.

    marcyella

    (@marcyella)

    I changed my image URL so it now works.

    marcyella

    (@marcyella)

    I cleared my cache. Now it shows up. Thank you so much for the help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Stylesheet not working for theme’ is closed to new replies.