Support

Home Forums Event Espresso Premium Event editing and calendar view not working with template

Event editing and calendar view not working with template

Posted: May 22, 2018 at 8:33 am

Viewing 8 reply threads


herrmitideen

May 22, 2018 at 8:33 am

Hello,

I have tested Event Espresso Lite on a clients website which uses Cinnamon Restaurant Theme by imaginem. All worked well.

Now I decided to buy and upgrade to EE4 including Calendar view. Unfortunately in this version, I can’t edit the event description text and the calendar view is not displayed when building in the shortcode.

I can edit the events when I turn off the templates’ shortcode plugin but of course then the theme doesn’t work.

The website is: http://lieblingskaffee.ideenstudio.berlin/veranstaltungen/

Thanks in advance and best regards

Nico


Tony

  • Support Staff

May 22, 2018 at 10:00 am

Hi Nico,

I have tested Event Espresso Lite on a clients website which uses Cinnamon Restaurant Theme by imaginem. All worked well.

Just to note, if you use Event Espresso Lite thats actually a limited version of EE3.

EE4 is a completely different system from EE3 so unfortunately testing Lite before switching to EE4 doesn’t help, you need Event Espresso Decaf to test EE4.

With regards to the Calendar, EE only loads its assets on pages where it can detect its shortcodes, the problem with that is some page builders confuse the shortcode tracking and so then EE doesn’t load the script.

To fix the problem with the calendar on your home page you can use this snippet:

https://gist.github.com/joshfeck/e2a4bae79dbf89d56b03b8895ddeeef1

Or if you’d like to load the calendar on other pages you can use this snippet:

https://gist.github.com/joshfeck/a93625301ba269ce820214059064f2c6

That will load the Calendar scrips on pages with the ID’s 123, 345, 345 (obviously you can change those to suit).

You add that function to custom functions plugin on your site:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

We’ll need more details on the event description text issue, what happens when you try to edit the text?


Josh

  • Support Staff

May 22, 2018 at 10:03 am

Hi there,

The calendar view will only be displayed on the front end and you’ll need the calendar add-on installed.

If you can post a link to where we can download the theme we can investigate the shortcode editor issue.


herrmitideen

May 23, 2018 at 2:40 am

Hello Tony and Josh,

unfortunately the snippet is not working and it also would not be able to solve the problem with the event description. The calendar view add-on is installed.

The used template can be bought here. As it is fee-based, I could send a ZIP file copy via e-Mail to one of your staff members, but may not provide it for download here.

Best regards,

Nico

P.S.: If things don’t work out, is it possible to downgrade from EE4 to EE3 ?


Tony

  • Support Staff

May 23, 2018 at 3:35 am

unfortunately the snippet is not working and it also would not be able to solve the problem with the event description

Where are you adding the snippet and did you change the page ID’s to the correct ID’s to load the script on?

I know it won’t fix the event description as that’s a completely different issue from the calendar, so we fix the calendar using the snippet and then look into the issue with the description.

The used template can be bought here. As it is fee-based, I could send a ZIP file copy via e-Mail to one of your staff members, but may not provide it for download here.

If you had added the link to download to your post we would have removed it from view shortly after 🙂

However, you can send a copy to support[at]eventespresso.com although please do not include the ZIP file directly within the email, due to the filesize of most themes it will likely be rejected. You’ll need to host the file somewhere (Dropbox for example) and email a link we can use to download it from.

P.S.: If things don’t work out, is it possible to downgrade from EE4 to EE3 ?

Yes its possible to switch to EE3, however, no further development time is spent on EE3 (with the exception of security fixes) as eventually, we will be phasing our EE3 in favour of EE4.


herrmitideen

May 23, 2018 at 4:00 am

Hi Tony,

Where are you adding the snippet and did you change the page ID’s to the correct ID’s to load the script on?

I added it in the themes functions.php and yes, I changed the page ID.

However, you can send a copy to support[at]eventespresso.com although please do not include the ZIP file directly within the email, due to the filesize of most themes it will likely be rejected. You’ll need to host the file somewhere (Dropbox for example) and email a link we can use to download it from.

Done.


Tony

  • Support Staff

May 24, 2018 at 3:47 am

OK, so the problem with the calendar can be fixed using this snippet:

https://gist.github.com/joshfeck/5d9c88fea504c0b111c3df8f24ad25d9

But you’ll need to either change line 7 and remove the && is_page( 'calendar' ) or set the page ID’s like in the last snippet.

The issue with the editor is due to the ‘iMaginem Shortcodes Generator’ plugin that comes with the theme, its loading some of its assets on all pages but then checks for specific WP admin routes to load others, the problem with that is on the EE editor its load assets that expect others to load and they aren’t.

This needs to be fixed by the author of the theme/plugin so they only add their assets when needed/all other assets load.

We don’t provide support for other plugins/themes but I did come up with a snippet that will remove the assets that plugin adds which then allows EE to function as expected:

https://gist.github.com/Pebblo/aa093775d95cdd6f51694b4aa3c192e0

Add that function to a custom functions plugin on the site and the EE editor should work again (note it removes the buttons that plugin is adding on the EE editors)


herrmitideen

May 24, 2018 at 4:10 am

Hey Tony,

thank you so much for your support. After I built in your snippets, everything is working fine!

Good job, thanks again!

Have a nice day!


Tony

  • Support Staff

May 24, 2018 at 4:27 am

You’re most welcome 🙂

If have a minute we would really appreciate if you could share your experience with Event Espresso or provide a review on WP.org.

Viewing 8 reply threads

The support post ‘Event editing and calendar view not working with template’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso