I know that to link your WordPress main style.css
file you use:
<link href="<?php bloginfo('stylesheet_url');?>"rel="stylesheet" type="text/css"/>
However I have quite a few CSS files that need to be linked to the main PHP file for things like sliders, picture boxes etc...
I'm not quite sure how I would do that because the <?php bloginfo('stylesheet_url');?>
only works for the stylesheet that is named styles.css
and my other stylesheets all have different names.
Does anyone know how I can ink them all in?
Just put all of your stylesheets in a directory wp-content\themes\twentyeleven\css
.Then you can link all these by simply put below code-
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/style1.css" />
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/style2.css" />
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/style3.css" />
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/style4.css" />
enjoy coding.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With