Title: Extra HTML Tags
Last modified: May 2, 2019

---

# Extra HTML Tags

 *  [ebud](https://wordpress.org/support/users/ebud/)
 * (@ebud)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/extra-html-tags/)
 * This is a great plugin, but I am running into some formatting issues.
 * When I insert the short code into the Editor I end up with <p></p> before and
   after where the map is displayed on the frontend. I am using “Text” view and 
   entering the following on one line
    `[leaflet-map address="Las Vegas" zoomcontrol
   scrollwheelzoom !attribution height="500px" zoom=9][leaflet-geojson src="/wp-
   content/themes/cs_2019/img/Stops.geojson"]<h4>{name}</h4>{description}<a class
   ="button" href="#" target="_blank" rel="noopener noreferrer">BOOK NOW</a>[/leaflet-
   geojson]`
 * Similar issue with the pop up…I end up with the following.. extra <p> and <br
   > tags the mess up the layout.
    `<div class="leaflet-popup-content" style="width:
   301px;"><p></p><br><h4>TITLE</h4><br><p>Lorem ipsum dolor sit amet, consectetur
   adipiscing elit.<a class="button" href="#" target="_blank" rel="noopener noreferrer"
   >BOOK NOW</a></p></div>`
 * Any suggestion, other then targeting these with css?

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

 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/extra-html-tags/#post-11492854)
 * I’ve seen a few issues like that with wordpress. I’m not sure of a consistent
   solution. I’ve disabled wordpress auto p before: [https://codex.wordpress.org/Function_Reference/wpautop](https://codex.wordpress.org/Function_Reference/wpautop)
 * And I think there is some code in the plugin which tries to deal with new lines
   and paragraph tags, but it’s possible that it’s not working in the popups.
 *  Thread Starter [ebud](https://wordpress.org/support/users/ebud/)
 * (@ebud)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/extra-html-tags/#post-11506538)
 * No luck… tried a few ways to filter out the <p>’s that are appear before and 
   after where the shortcode goes. I am guessing they are generated as the shortcode
   executes?

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

The topic ‘Extra HTML Tags’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-map/assets/icon-256x256.png?rev=1693083)
 * [Leaflet Map](https://wordpress.org/plugins/leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-map/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ebud](https://wordpress.org/support/users/ebud/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/extra-html-tags/#post-11506538)
 * Status: not resolved