Magento Forum

   
Need to add a class to the anchor tag of parent catagories. 
 
JeffreyKarbowski
Jr. Member
 
Total Posts:  23
Joined:  2008-11-18
 

Hello,
I would really like to be able to add the class “header” to only the parent categories. I have redirected Navigation.php to use for my own, but I am not really good with coding php.

$html.= '<a href="'.$this->getCategoryUrl($category).'"><span>'.$this->htmlEscape($category->getName()).'</span></a>'."\n";

something to the likes of <a href if li .level0 then add class “.header”, if anything else then don’t.

Thank you in advance!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top