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