Events Made Easy › Forums › How do I … › Issue with widget UL headers
- This topic has 9 replies, 2 voices, and was last updated 5 years, 11 months ago by Franky.
-
AuthorPosts
-
Wed 12 Dec 2018 at 16:00 #59125AnonymousInactive
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
JamieWed 12 Dec 2018 at 17:31 #59126FrankyKeymasterYou’re correct, it is a bug.
I’ll fix and release today.Thu 13 Dec 2018 at 10:36 #59127AnonymousInactiveMuch appreciated Franky. Excellent work as always
Thu 13 Dec 2018 at 10:51 #59128FrankyKeymasterWell, 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 🙂 )
Thu 13 Dec 2018 at 10:53 #59129AnonymousInactiveHi 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)
Thu 13 Dec 2018 at 11:15 #59131FrankyKeymasterUsing 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.
Thu 13 Dec 2018 at 11:22 #59132AnonymousInactiveHi
Again, thanks. Of course that resolved it.
I think you’re correct about the eme.js
Thanks again
JamieThu 13 Dec 2018 at 11:28 #59133FrankyKeymasterIf you have a demo, I can take a look …
Thu 13 Dec 2018 at 11:31 #59134AnonymousInactiveHi
It’s on a live site: https://triskelartscentre.ie/
Thu 13 Dec 2018 at 11:51 #59135FrankyKeymasterOk 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 -
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.