Conditional CSS loading
-
I’ve been trying to create a conditional loading of stylesheet on a theme that I am trying to make. here is the code that i’m using:
<?php if ( is_page() ); ?> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?> /style2.css" /> <?php else : ?> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url') ?>" /> <?php endif; ?>i hope someone can help me. thanks in advance
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Conditional CSS loading’ is closed to new replies.