Customising html for navigation menu in child theme
I am developing a child theme for the Buddypress default theme. I am wanting to make significant changes to the html for nav menu items. It appears that the function wp_nav_menu generates the nav div html. From having read the info on creating child themes it would seem that the best approach is to create a functions.php file in my child theme directory and then add a new function there, say wp_nav_menu2, and then include this in my header.php. Having looked at the default functions.php file it is not clear to me what I need to copy over to my functions.php from the default version, and where I would add the html for my nav items. I would like the html for each nav item to be in the form:
Complicated markup I know, but it enables me to construct nav items from various background images.
Could someone advise me as to how to implement this?
You must be logged in to reply to this topic.