I’m attempting to link my CSS file with my header.php file for a WordPress site I’m working on, but I’m having a little trouble following along.
I was told to set it up like so:
<link href="<?php bloginfo('stylesheet_url');?>" rel="stylesheet">
Below is my current code:
<link href="<?php bloginfo('/style.css');?>" rel="stylesheet">
However if you look at the current state of the site, http://thenerdup.com, it’s obvious that the CSS file is not linked properly.
For what it’s worth, this is the tutorial I’m following along with: http://blog.teamtreehouse.com/responsive-wordpress-bootstrap-theme-tutorial
I’m currently on the part about editing the header.
Thanks for any help.
Actually it should be
So it’ll
echo/printtheurlof yourstylesheet.Here
bloginfo()is a function andstylesheet_urlis a parameter of this function. There are other parameters too, for example if you writebloginfo('name')then it’ll print the name of your blog.Also you can use
Read more at Codex.