I'm trying to get a div to show on a specific Magento webpage and hide on others. Specifically on the top Category level.
If someone can show me a code to do this which can be based off the Category ID or the website's URL, it would be perfect.
Within the div will be a basic button navigation which will take the user to another page.
The current code is currently in the 2columns-left.phtml, and as you can see there are buttons called: Wheels - Hubs - Rims - Spokes - Nipple Sets - Brake Discs.
This would be fine if all the categories had this option but they do not, so I need to make specific buttons for each top level category: Motocross-Enduro, Supermoto, Speedway, Road, Classic and Clearance.
So if anyone can help me in finding out a way to hide divs based on the magento category or url I'd appreciate it.