Show sub menu on body class

Permalink
Hi all,

How can i show a hidden div on when the body class had a for example "about".

I use a Attribute to give the body a class.

This is the code i have now:

HTML
<body id="<?php echo $c->getCollectionAttributeValue('bodyclass')?>">


<div id="submenu">
                <span>
                    <img src="<?php echo $this->getThemePath()?>/images/subnav_arrow.png" alt="" /><a href="#">subnav link</a>
                    <img src="<?php echo $this->getThemePath()?>/images/subnav_arrow.png" alt="" /><a href="#">subnav link</a>
                    <img src="<?php echo $this->getThemePath()?>/images/subnav_arrow.png" alt="" /><a href="#">subnav link</a>
                </span>  
            </div><!-- end submenu -->


CSS
#submenu span {width:900px; height:auto; float:left; display:none; color:#000; margin: 0 0 0 20px; padding:5px}
#about #submenu span {display:block;}


thanks in advance!

EDIT: i have multiple body classes

 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.