Events Made Easy Forums How do I … Issue with widget UL headers

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #59125
    Anonymous
    Inactive

    Hi.

    I recently updated the plugin on a site I run, and I noticed the formatting in the display of my widgets had changed on the frontend.

    On inspection, it looks like the “List Header Format (if empty < ul > is used):” is not appearing in the widget, so any styles associated with the UL have been lost.

    Is this an update I missed? That the widgets not longer use the header format?

    Cheers
    Jamie

    #59126
    Franky
    Keymaster

    You’re correct, it is a bug.
    I’ll fix and release today.

    #59127
    Anonymous
    Inactive

    Much appreciated Franky. Excellent work as always

    #59128
    Franky
    Keymaster

    Well, I fixed it and changed the plugin headers to 2.0.73 but forgot to create that tag, so that’s why I released 2.0.74 today (with more stuff 🙂 )

    #59129
    Anonymous
    Inactive

    Hi Franky

    I’ve updated to latest version and now none of the listings are appearing outside of the widgets.

    I have the listings displaying in my theme files with variations of:
    <?php eme_get_events_list("limit=0&order=ASC&template_id=8&category=1"); ?>

    However, none are appearing now. No code is being output. Just

    <ul class="eme_events_list">
                        </ul> 

    They were appearing correctly just before the update to Version 2.0.74

    The error I’m seeing in the web console is:

    eme.js?ver=2.0.74:687

    Uncaught TypeError: $(...).select2 is not a function
        at HTMLDocument.<anonymous> (eme.js?ver=2.0.74:687)
        at j (jquery-1.11.3.min.js?ver=1.11.3:2)
        at Object.fireWith [as resolveWith] (jquery-1.11.3.min.js?ver=1.11.3:2)
        at Function.ready (jquery-1.11.3.min.js?ver=1.11.3:2)
        at HTMLDocument.J (jquery-1.11.3.min.js?ver=1.11.3:2)
    #59131
    Franky
    Keymaster

    Using that in a theme yourself , there is indeed a change (in that by default no echo happens of the list).
    Either (using your example), just put an echo/print before your call:
    <?php print eme_get_events_list("limit=0&order=ASC&template_id=8&category=1"); ?>
    or add an extra “echo=1” to the parameter list.
    Btw: is explained in the API doc (half/half) that points to the options of eme_events for all argument possibilities (and there the echo param is mentioned as “do not use”).

    Concerning your eme.js: is that in your own created theme-files? Because then you’re not loading all js-files.

    #59132
    Anonymous
    Inactive

    Hi

    Again, thanks. Of course that resolved it.

    I think you’re correct about the eme.js

    Thanks again
    Jamie

    #59133
    Franky
    Keymaster

    If you have a demo, I can take a look …

    #59134
    Anonymous
    Inactive

    Hi

    It’s on a live site: https://triskelartscentre.ie/

    #59135
    Franky
    Keymaster

    Ok found it, indeed an issue in eme.js
    This should fix it (I changed it in the just released 2.0.74 too):
    https://plugins.trac.wordpress.org/changeset/1993560

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top