Editing menu html code
-
Hi! I would like to know where the html code from the menu is set in the php files in wordpress. I have defined the menu items in the backend, but now I would like to edit the HTML code, but I didn’t manage to find where it is. Can anybody help me? I checked nav_menu and nav_menu_template but I didn’t find it.
Thank you
-
What theme are you using? Where did you download it from?
Why are you using an old copy of WordPress? Were you aware that your site is currently running a very real risk of being hacked? You need to upgrade WordPress asap.
I’m sorry, the version is the last one! I got confused. About the theme, I am using a customized one, but I didn’t build it.
Can you replicate the problem using the 2012 theme?
What do you mean?
Do you have a problem locating the code in any of the default WP themes?
Yes
Have you reviewed Theme Development?
I just checked it. I still can find out where the menu’s HTML code is set. Only php and they don’t specify in which files in some cases.
In the 2013 theme, it is defined by
wp_nav_menu()in header.php.I have no call to the function wp_nav_menu in my header.php file…
Then you may need to contact the developer of this custom theme.
The topic ‘Editing menu html code’ is closed to new replies.