Solved

Add ID to Category navigation in Magento

Posted on 2011-03-12
2
535 Views
Last Modified: 2013-11-18
Hi,

I'm after a way to add an ID or specific class to each category in my top navigation (particularly the parent categories).

When I view the source of my pages, I can see that each of the parent category links are wrapped inside an LI tag. This LI has various classes set, but the ID="". Not sure where or how to set this.

I'd like to be able to individually style each parent category link on the navbar, and need the ID to set a rule in my style sheet.

I'm using Magento Community 1.5.0.1 and I'd prefer a solution that didn't require editing of the core files :)

Thanks in advance
0
Comment
Question by:Chris Stanyon
2 Comments
 
LVL 1

Accepted Solution

by:
jjjj234 earned 500 total points
ID: 35456074
hey the template file for the topnav is in template/catalog/navigation/top.phtml but all it does is call the core which which is here Mage_Catalog_Block_Navigation

could you not style them based on the class?

0
 
LVL 42

Author Closing Comment

by:Chris Stanyon
ID: 35927554
Not really an answer to the question asked. I wanted to set the ID for each navigation item, but didn't get any suggestions on how to do this.

Thanks anyway
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I recently read an article which suggested that 60% of businesses in the U.S. that process credit card details online in order to accept payment for goods or services were not Payment Card Industry security standards (PCI) compliant. This statement …
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now