CSS custom page template doesnet overite global CSS
-
Hello!
I have a question, I have a menu on my website and it’s a bit old-school. In terms that the sub-menus are hidden until you click on the page, then a sub-menu appears.So on the home page I have the style.css
#main .widget-area .sub-menu li { display:none; }Then when you browse to, ex: about us I have the following code:
<?php if ( is_page('51') ) { // Load special CSS for "About us" category ?> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/SECabouttivoli.css" type="text/css" media="screen" />; <?php } else { ?> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <?php } ?>And that custom css is as follows:
#main .widget-area .sub-menu li { color:#333333; display:block; text-decoration:none; background-color:#E09173; }The problem: the custom CSS doesn’t override display:none and the submenu is still hidden!
Any ideas!?
Thanks!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
The topic ‘CSS custom page template doesnet overite global CSS’ is closed to new replies.