Hi guys,
So I've finally taken it upon myself to learn Wordpress. One issue I can't seem to work out is how to call a css file for a specific page...
Currently, I have one main style.css file and that is called using...
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
That works fine, however, on my home page I want different styles in a separate css file. So I try to call it in the header.php file using...
<?php if (is_front_page()) { ?>
<link href="css/JQuerySlider1.css" rel="stylesheet" type="text/css">
<?php } ?>
This does not work.
Any ideas? I am a Wordpress and php newbie...
P.S. I can use <link rel="stylesheet" href="includes/JQuerySlider/JQuerySlider1.css"> directly on the home.php file, but I don't think this is the correct way?
So I've finally taken it upon myself to learn Wordpress. One issue I can't seem to work out is how to call a css file for a specific page...
Currently, I have one main style.css file and that is called using...
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
That works fine, however, on my home page I want different styles in a separate css file. So I try to call it in the header.php file using...
<?php if (is_front_page()) { ?>
<link href="css/JQuerySlider1.css" rel="stylesheet" type="text/css">
<?php } ?>
This does not work.
Any ideas? I am a Wordpress and php newbie...
P.S. I can use <link rel="stylesheet" href="includes/JQuerySlider/JQuerySlider1.css"> directly on the home.php file, but I don't think this is the correct way?