Title: Broken HTML
Last modified: May 31, 2023

---

# Broken HTML

 *  Resolved [rmdhn](https://wordpress.org/support/users/rmdhn/)
 * (@rmdhn)
 * [3 years ago](https://wordpress.org/support/topic/broken-html-7/)
 * I’ve successfully identified what’s causing trouble in the HTML, here is a simple
   video of me inspecting and editing the HTML to fix the issue 
   [https://ufile.io/f/t6bfo](https://ufile.io/f/t6bfo)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbroken-html-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [3 years ago](https://wordpress.org/support/topic/broken-html-7/#post-16782562)
 * Hi rmdhn,
 * You are correct that those br tags should not be there. There must be a conflict
   as our plugin does not output those.
 * I think you would need to ask your theme authors how to prevent the block content
   from being run through [wpautop](https://developer.wordpress.org/reference/functions/wpautop/)(
   I suspect that is what is adding the br tags)
 * Regards,
   Tom
 *  Thread Starter [rmdhn](https://wordpress.org/support/users/rmdhn/)
 * (@rmdhn)
 * [3 years ago](https://wordpress.org/support/topic/broken-html-7/#post-16784904)
 * I’ve installed the remove wpautop plugin and it didn’t make a difference, and
   also, what about the little gaps between the items?
 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [3 years ago](https://wordpress.org/support/topic/broken-html-7/#post-16786309)
 * Hi rmdhn,
 * I suspect the gaps will also be due to the extra br tags that are being added.
   Please ask your theme authors how to prevent the block content from being run
   through [wpautop](https://developer.wordpress.org/reference/functions/wpautop/)(
   the br tags are not added by our plugin)
 * Regards,
   Tom
 *  Thread Starter [rmdhn](https://wordpress.org/support/users/rmdhn/)
 * (@rmdhn)
 * [3 years ago](https://wordpress.org/support/topic/broken-html-7/#post-16786432)
 * I understand, although i have tried disabling wpautop globally and it didn’t 
   seem to remove br
 *  Thread Starter [rmdhn](https://wordpress.org/support/users/rmdhn/)
 * (@rmdhn)
 * [3 years ago](https://wordpress.org/support/topic/broken-html-7/#post-16808162)
 * I have solved this issue. It is caused because i used shortcode to insert it,
   using gutenberg works now

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Broken HTML’ is closed to new replies.

 * ![](https://ps.w.org/megamenu/assets/icon-128x128.png?rev=1489843)
 * [Max Mega Menu](https://wordpress.org/plugins/megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/megamenu/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [rmdhn](https://wordpress.org/support/users/rmdhn/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/broken-html-7/#post-16808162)
 * Status: resolved