Adding a css dynamic menu…
-
Hello there, I am trying to make a CSS dynamic menu
but I have 2 problems:
1) I want to add a class in classes.php at aroubnd line 588 I wrote:
if ( $cat_name=="My Main Cat 1" || $cat_name=="My Main Cat 2" || $cat_name=="My Main Cat 3" ) { $link = '<a class="hide" href="' . get_category_link( $category->term_id ) . '" '; } else { $link = '<a href="' . get_category_link( $category->term_id ) . '" ';}
But that isn’t really neat and the names can change:
Hox could I write:
if CATEGORIE = MAIN THEN…
ELSE …See what I mean ?
2)
In my header i added:
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie7menu.css">
but strangely ul and li seem to be styled by default cssAny idea why ?
I also added a div in my sidebar:
` <div class=”deroul”>
-
<?php wp_list_categories(‘title_li=’); ?>
</div>`
Thanks in advance for your comments 🙂
Cotp
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding a css dynamic menu…’ is closed to new replies.