You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using shortcodes. The users write more than one shortcode in one shortcode block, every shortcode on one line, so that it is clearly arranged. WordPress interprets every shortcode and for the "newline" it inserts a <br />. Therefore a large empty space appears.
I tested it with a standard theme also.
Also, why check if the user is adding dashicons (not entirely opposed to this, but seems so specific)?
You have in your Shortcode Helper page [leaflet-marker svg background="#777" iconClass="dashicons dashicons-star-filled" color="gold"]My Favorite Place in the World[/leaflet-marker]. The users test it and it isn't displayed correctly in frontend, because dashicons are only available in admin backend. So the function tests if dashicons are used and loads the css if needed.
If you find another solution for the problems, you can of course apply it.
Hi Bozdoz,
this code should be in Leaflet Map and not in Extensions.
dashicons see https://leafext.de/extra/helper/.
leafext_replace_br: See https://wordpress.org/support/topic/huge-white-space-below-my-map-on-the-blog-posts-overview-page/#post-15980872
Searching about that with Google suggested solution with wp_autop, but this doesn't work.
The text was updated successfully, but these errors were encountered: