Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Add ID to Category navigation in Magento

Posted on 2011-03-12
2
Medium Priority
?
560 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
jjjj234 earned 1500 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 44

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
WooCommerce is becoming the most powerful e-commerce plugin for Wordpress. And why not. The platform comprises of numerous core plugins that may come in handy, powerful options to make your website development task much easier.
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Suggested Courses

618 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