Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter stefandog

    (@stefandog)

    I might have a solution! : )

    leaflet is used for OpenStreetMaps. It can also be downloaded here:
    https://leafletjs.com/

    When I extract and copy the latest version to a new folder in “event-organiser” on my webserver and change event-organiser-register.php to

    wp_register_script( 'eo-leaflet.js', EVENT_ORGANISER_URL."NEW-FOLDER/leaflet.js" );
    		wp_register_style( 'eo-leaflet.js', EVENT_ORGANISER_URL."NEW-FOLDER/leaflet.css" );

    (you have to replace NEW-FOLDER) then everything works perfectly fine without any external sources. You also don’t have to reinstall anything.

    I guess EO updates may override this, but for now I’m happy with this solution.

    Thanks for the great Plugin.

    Thread Starter stefandog

    (@stefandog)

    I’ve found that this seems to be done in

    event-organiser-register.php

    wp_register_style( 'eo-leaflet.js', "{$protocal}cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.css" );

    What happens, when I delete this registration? Is it necessary to reinstall event organiser?

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