• Resolved mhoy09

    (@mhoy09)


    I am trying to make a theme for my site. I cannot get my style.css to affect the pages.

    I have the following in my header.php file:

    <head>
    <title>Saguaro Scuba blog</title>
    <link rel="style sheet" href="wp-content/themes/saguaroscuba/style.css" type="text/css" media="screen" />
    </head>

    I view source on my blog and it shows the css and the title of the page changes. As a test I just made a simple h1 element and style it orange to see if it took, but it didn’t.

    h1 {
    	color:orange;
    }

    I’m sure I’m missing something easy here.

Viewing 4 replies - 1 through 4 (of 4 total)
  • instead of:

    <link rel="style sheet" href="wp-content/themes/saguaroscuba/style.css" type="text/css" media="screen" />

    try to use:

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

    Thread Starter mhoy09

    (@mhoy09)

    Thanks, that fixed it.

    Thread Starter mhoy09

    (@mhoy09)

    What about for images directory and etc? How do I say

    <img src="path/to/images/image.png" />

    ?

    Thread Starter mhoy09

    (@mhoy09)

    <img src="<?php bloginfo('template_directory'); ?>/images/banner_temp.jpg" />

    That worked.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘style.css is not affecting my theme’ is closed to new replies.