Title: Adding HTML Code To Menu not Working
Last modified: January 6, 2025

---

# Adding HTML Code To Menu not Working

 *  Resolved [ab-tools](https://wordpress.org/support/users/ab-tools/)
 * (@ab-tools)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/adding-html-code-to-menu-not-working/)
 * Hello,
 * I’m trying to add plain HTML to the header menu:
   To do so, I add the “HTML” widget
   which I thought would be meant for exactly that.
 * Now I select the “Text” tab to enter plain HTML code directly, but when I add
   e. g. the tag “[language-switcher]” from a language plug-in there, it automatically
   adds a “<p>” tag around it which prevents it from working correctly.
 * But also when adding other HTML code in that field, it always adds this tag around
   it.
 * Is there a way I can prevent this from happening or what other option do I have
   to inject plain/raw HTML into the header menu?
 * Best regards and thanks in advance
   Andreas

Viewing 1 replies (of 1 total)

 *  [rodicaelena](https://wordpress.org/support/users/rodicaelena/)
 * (@rodicaelena)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/adding-html-code-to-menu-not-working/#post-18236809)
 * Hi,
 * Unfortunately there isn’t other way of doing this, at least in the free version.
   In the pro version, you can use one of the Widget Area components, where you 
   ca add the Custom HTML block.
 * Kind regards!

Viewing 1 replies (of 1 total)

The topic ‘Adding HTML Code To Menu not Working’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/neve/4.2.4/screenshot.png)
 * Neve
 * [Support Threads](https://wordpress.org/support/theme/neve/)
 * [Active Topics](https://wordpress.org/support/theme/neve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/neve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/neve/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [rodicaelena](https://wordpress.org/support/users/rodicaelena/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/adding-html-code-to-menu-not-working/#post-18236809)
 * Status: resolved