Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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