Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Paulsche

    (@paulsche)

    This solved it.

    Theme Checker reported that a call to wp_footer() was missing in footer.php.

    leaflet-map is working correctly now – thanks a lot.

    Thread Starter Paulsche

    (@paulsche)

    Wow – now THAT was a superb hint. Thank you! This plugin was unknown to me until now. Very helpful.

    After installing Query Monitor (QM), I made the following observation. This could lead to evidence concerning my “theme” problem:

    • in the WP admin dashboard, QM display shows up as it should.
    • On a non-admin page, like the one in question (see thread opening post), the admin bar appears – but with an entry “Query Montor” on the right that leads to an empty menu. (not the usual QM panel like “0.06S 7’942kB 0.0063S 51Q”).

    And same effect here: when i select the theme “Twenty Twenty-One”, the QM displays in the admin bar correctly (the ‘usual’ QM panel like “0.06S 7’942kB 0.0063S 51Q”).

    Notabene: the remaining items on the admin bar work as expected in all themes. (Customizer, Edit Page, also the menu item of the abovementioned “Smart Slider 3” plugin)

    I am pretty sure that this erratic behaviour is also the reason for malfunction with leaflet plugin.

    Can anyone give me a hint where to search first? What HTML tags could be missing in my theme index.php? Could there be a selector missing in my themes’ style.css file? A mandatory hook call missing in functions.php?

    Thread Starter Paulsche

    (@paulsche)

    Promising aspects. Thank you.

    • There is no caching plugin. I even deactivated all plugins (except leaflet-map) and put define('WP_CACHE', false) in wp-config.php. No success.
    • This also applies to minify plugins – as long as you do not mean the leaflet plugin itself (operates with minified JS code, see class.leaflet-map.js lines 200 ff. for example).
    • Understandably, I would be grateful if someone could point me in the right direction regarding “some extra CSS”. What would be the point of this when the relevant classes (leaflet-container leaflet-touch leaflet-fade-anim …) do not appear in the HTML all? I even tried to reduce the CSS to a few basic entries – nothing changes.

    I agree with your diagnosis ‘leaflet.js and leaflet.css are not being loaded’. I think the most promising way to find a solution would be to look for a reason for this. This is why i chose ‘theme requirements’ as thread title. Why does leaflet-map load with Twenty Twenty-one, but not with my theme? Which hooks have to be called for leaflet-map to function?

    On the same site, i make use of the plugin Smart Slider 3. The Javascript coming from this slider plugin loads without any problems. Why not leaflet’s Javascript?

    Thread Starter Paulsche

    (@paulsche)

    thanks for posting – yes, i am very interested in the code

    Thread Starter Paulsche

    (@paulsche)

    What you are saying is not true. Please read my message once again and check the two format strings precisely.

    There is a dot missing after the day ordinal in one of the suggested standard date formats. As I said, you can “fix” it by using a custom format.

    But anyway – developers now have the chance to fix the bug.
    Resolved.

    1.
    The translation for weekdays IS included. You have to select a suitable Date format in the settings.

    2.
    [events_show type=”today”]

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