Closed (fixed)
Project:
Taxonomy Menu
Version:
6.x-2.4-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2009 at 10:46 UTC
Updated:
30 Sep 2009 at 15:50 UTC
Hello everyone
Can anyone plz tell me where I can chance the default “html content” output under taxonomy menu, as I want to change the html tags.
For example, in the regional html output, the default template has been using a list of nested
Comments
Comment #1
omcateer commented*sorry html in my message got rendered*
Hello everyone
Can anyone plz tell me where I can chance the default “html content” output under taxonomy menu, as I want to change the html tags.
For example, in the regional html output, the default template has been using a list of nested < li > element with < a > tags, but I could like to use < h? >tags instead, as well as inserting some other plain text in the middle somewhere between the output
Comment #2
indytechcook commentedThere are several places where you can change that.
The HTML is created by the menu system. Taxonomy Menu only created the menu_links in the database (by the use of the menu system functions).
The best place would be in your theme layer. http://api.drupal.org/api/search/6/theme_menu is a good place to start.
Here is a guide for overriding theme output: http://drupal.org/node/341628
THere are several other guides on blogs and such, your best bet for a how to is to google "drupal override theme function"
Cheers,
Neil
Comment #3
omcateer commentedThank you the guide was very helpful but it is applying my changes to all menus on my website. How do I change only the taxonomy menu?
Here is the code I placed in my template.php file: