Solved

Add ID to Category navigation in Magento

Posted on 2011-03-12
2
538 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 43

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Often people are aiming at development of perfect Magento websites. Though, it is easier said than done. You know what’s much easier? To ruin everything. It can be done in seconds. Many of us experimented with design, tried to change some values dir…
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
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 video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

776 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