• Resolved fraumaria

    (@fraumaria)


    Hi,

    I put the code snippet which was advised to do in this thread https://www.ads-software.com/support/topic/whitespace-added-after-map-display/
    in my site-specific plugin-php. (meaning, NOT in the functions.php, but this should work as well, no?)

    Unfortunately, this won’t help in my case to remove the huge whitespace in my blog posts page.

    What else can be done to get rid of this (except of getting rid of leaflet map plugin)?

    Thanks for any help on this.
    Grettings,
    Maria

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor hupe13

    (@hupe13)

    When editing a page or post open the Code Editor and remove any spaces, breaks and newlines between shortcodes.
    For your map, I recommend the [cluster] shortcode from Extensions for Leaflet Map.

    Thread Starter fraumaria

    (@fraumaria)

    Hi,

    thanks.
    But nothing works.
    Every marker I’m adding increases the white space.
    Well, I spent a lot of time to get this and the OOTB OSM (different thread, differnt issue) working. Both maps arrarently are not working with my blog, what a pity for my TRAVEL blog!

    Greetings,
    Maria

    Plugin Contributor hupe13

    (@hupe13)

    Ja, das ist sehr schade. Kannst du bitte eine Testseite nur mit Karte und Markern erstellen?
    Benutzt du den Standardeditor?

    Thread Starter fraumaria

    (@fraumaria)

    Hallo,

    was meinst du mit “Standardeditor”?
    Ich arbeite im WP6-Editor, Gutenberg.

    Das ist eine Test-Page mit Karte und Markern.
    https://www.gietl.earth/test-leaflet/

    Ich habe es auch mit einem Test-Post probiert, ist dasselbe.

    Hier auch wieder: für jede Shortcode-Zeile wird ein Zeile script mit break generiert…

    Maria

    W?re die Site-Info von Belang?

    • This reply was modified 2 years, 2 months ago by fraumaria. Reason: Site-Info ist sehr lange
    Plugin Contributor hupe13

    (@hupe13)

    I don’t need the site info.
    It seems to be the theme. I must test it.

    Plugin Contributor hupe13

    (@hupe13)

    It seems to be the theme. I must test it.

    No. I was wrong.

    remove any spaces, breaks and newlines between shortcodes.

    This is true.

    Use a shortcode block and write without any newline:
    [leaflet-map fitbounds][leaflet-marker lat=... lng=...]Info 1[/leaflet-marker][leaflet-marker lat=... lng=...]Info 2[/leaflet-marker][leaflet-marker lat=... lng=...]Info 3[/leaflet-marker]

    Or use for every shortcode a shortcode block. Code editor shows:

    <!-- wp:shortcode -->
    [leaflet-map fitbounds]
    <!-- /wp:shortcode -->
    
    <!-- wp:shortcode -->
    [leaflet-marker lat=... lng=...]Info 1[/leaflet-marker]
    <!-- /wp:shortcode -->
    
    <!-- wp:shortcode -->
    [leaflet-marker lat=... lng=...]Info 2[/leaflet-marker]
    <!-- /wp:shortcode -->
    Thread Starter fraumaria

    (@fraumaria)

    Hi,

    many thanks for both of your options!
    The second one, Shortcode block seems to work now. I put it in the Blog Posts Overview which is the Template “Home” and it looks like it should. Too tired to put more markers today, I will proceed tomorrow.

    This is how the first option looks like, I checked the syntax again and again but I don’t know why there is this syntax code written:
    https://snipboard.io/BDceZ0.jpg

    Both options here:
    https://www.gietl.earth/test-leaflet/

    greetings
    Maria

    Thread Starter fraumaria

    (@fraumaria)

    Update: Finished with most of my markers. Looks good!
    Thanks once again for your support!

    Plugin Contributor hupe13

    (@hupe13)

    There will be a solution for this in the next version of Extensions for Leaflet Map.

    • This reply was modified 2 years, 2 months ago by hupe13.
    Thread Starter fraumaria

    (@fraumaria)

    Great!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Huge white space below my map on the blog posts overview page’ is closed to new replies.