Hi,
It depends of the theme you are using.
But most of the time, you should find a file called “header.php” your theme directory. Just open it and add the html line code to make de link with your stylesheet.
It should be something like that:
<link rel='stylesheet' id='yourCSS' href='your_css_location' type='text/css' media='all' />
Hi, thank you for responding. I looked in header.php, and I can see the stylesheet link can be added in there, but what I do not see in there is the existing link to style.css that shows up in the header at my site. It looks like the link to style.css is produced by the function wp_head(). Is there a way to add my_css_location to the be loaded as part of wp_head(), so it is handled the same way as the default style sheet?
When I tried getting into the internals of wp_head, I found hooks and do_actions, and could not find where they get their details.
I get the feeling this is a part of WP I am not supposed to be in.
Yep,
The style.css link is generate by wp_head() function.
You should read about wp_enqueue_style().
But any way, if don’t want to read to much documentation you can just add you line in the header.php file.
Thank you sebig and WPYogi. I got to wp_enqueue_style when I was digging into this on my own. That was the stuff I said, “whoa, is this meant for people to get involved with?” I thought I was in the wrong area, so that is why I checked here. Now that you have confirmed that is where the stuff is I am looking for… onward to enqueue!
I understand about how the css link can go into header.php. Most likely will end up that route, but for now I am digging back into wp_enqueue_style.
The puzzle is coming together in my noodle brain. The simplicity boggles my mind!
That you again for the help verifying the path.
Upon further review, I jettisoned wp_head(). It gets into complications that are helpful for situation more complicated than mine. Now putting css links directly into header.php, as recommended by sebig, but header.php no longer contains wp_head(). This seems to be working out so far.
Is it ok to run WordPress without using wp_head()?