Posts Tagged ‘Javascript’
Integrating Alternative Stylesheets in WordPress Themes
Written by Jai on July 15, 2008 – 11:12 am - 6,738 views21 Comments

I am sure that everyone has come across WordPress themes which use alternative stylesheets (CSS) to switch between different sets of style information. For example, you can have a look at the following themes that have this functionality :-
Here is how these themes do it :-
Default Stylesheet
Ideally, every WordPress theme has a style.css file associated with it that contains all the style information for the theme. This default stylesheet is usually called in the header.php file of your WordPress theme by something like this :-
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
Rel=”stylesheet” is what defines the active stylesheet as the default one. Read more
If you enjoyed this post, make sure you subscribe to my RSS feed!










