if/ else/ categories
-
Hi Guys,
I have a bunch of conditionals within a navbar and just need this last piece for it to work perfectly.
What I have is:
Category1
link1
link2
link3Category2
link4
link5Category3
link6
link7Etc
I’m using a very basic javascript to show/ hide each child menu
Now … I need to do a if/ else to show 1 line:
<?php if ( is_category('1') ) { echo '<ul class="show" id="packaging">'; } else { echo '<ul class="hide" id="packaging">'; } ?>
This works fine on the first child menu but not on any of the others.
Any reason why not?
I can PM the URL if need be.
TIA
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘if/ else/ categories’ is closed to new replies.