• Hi, i made my own wp-template but when i upload my theme it doenst show my css…

    In my dreamweaver preview it does work and as far as i know my link to the css file is correct?
    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />

    I don’t know and i can’t find how to fix this?
    Somebody who knows how to fix this??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    Try it with this (from twenty eleven): <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

    Anjara

    (@hiteshanjara)

    Hey nnc24,

    Here you need to put full path(url) of the css file.You can add style.css in header.php file two ways:

    You can include stylesheet as per wordpress format:

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

    OR

    You can include manually style.css file:

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

    Let me know if you have any question or confusion on the same.

    Thanks & Regards,
    Hitesh Anjara

    Thread Starter nnc24

    (@nnc24)

    Thanks a lot for your help!

    On the 'stylesheet_url' do I put there 'style.css'??

    and if I use the one bellow what do I put on the place of'template_url'

    no, you copy that exactly. it’s how WP requests the full path to your stylesheet.

    use teh first one, referencing stylesheet.

    Thread Starter nnc24

    (@nnc24)

    Nevermind!!
    I didn’t need to fill that in but leave it just like that! ??
    Thanks a lot for the help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘css doesn't work in wp’ is closed to new replies.