Support

Home Forums Event Espresso Premium Short Description not working

Short Description not working

Posted: June 29, 2015 at 11:12 am

Viewing 17 reply threads


Kirstin

June 29, 2015 at 11:12 am

Hello –

Please reference my previous support thread which was not resolved. https://eventespresso.com/topic/short-description-in-calendar-not-working/

I have contacted the theme developer and this is their response –

“Hello,

Unfortunately our theme isn’t compatible with Espresso Calendar plugin.
Sorry, but we can’t guarantee full compatibility of 3rd-party plugins with the theme.
You may try to use this plugin https://wordpress.org/plugins/the-events-calendar/installation/ instead.

Please take our apologies for inconveniences.”

Can you please assist me in resolving this issue or I may be forced to request a refund.

Thank you.


Lorenzo Orlando Caum

  • Support Staff

June 29, 2015 at 1:16 pm

Hi, that link isn’t currently loading. Could you please check with your web host and update this support post once its available again?


Lorenzo


Kirstin

June 29, 2015 at 3:07 pm

My calendar URL is http://0ae.f46.myftpupload.com/calendar/

The link I posted above was to a previous thread in which I had asked you for help.

Your response was – “The calendar is powered by JavaScript, which means if there is a JavaScript error on your page it can stop the calendar from working.
Unfortunately you do indeed have a JavaSCript error:
Uncaught TypeError: Cannot read property ‘call’ of undefined
This error is coming from one of the theme files ( royal/js/plugins.js ), it looks like the Isotope.js (the JavaScript that deals with layouts in your theme) is firing when you hover over one of the calendar elements.
I can’t see a reason as to why that is occurring, but I think you will need to refer to the theme developer regarding this.”


Dean

June 30, 2015 at 1:01 am

Hi Kirstin,

That’s quite a bland and unhelpful response from the theme developer.

The error is coming from the theme, and not Event Espresso.

Rather than leave you out on a limb, I think I know a way to workaround the issue, though I don’t yet know how effective it will be, but I’ll need a copy of the theme.

Can you send a copy of the theme to support@eventespresso.com, and include a link to this forum post in the email?

Also, please see section 6 of our terms regarding refunds: https://eventespresso.com/support/terms-conditions/


Dean

July 6, 2015 at 2:22 am

Hi,

Thanks for sending me the theme.

OK, the below solution is not ideal, but it does work.

It basically checks to see if the page content has the ESPRESSO_CALENDAR shortcode on it, and if it does, it disables the themes plugins.js

This might have unintended consequences, though I couldn’t see anything on my test site.

Please note, this is just a band-aid fix, the root of the issue still lies with how the theme is calling the code.

The fix.

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

Add the following code to it:

function disable_theme_js_on_calendar_page() {
  global $post;
  if( is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, 'ESPRESSO_CALENDAR') ) {
    wp_dequeue_script( 'plugins');
  }
}
add_action( 'wp_enqueue_scripts', 'disable_theme_js_on_calendar_page', 100);

Install and activate the plugin.

I emailed you a copy of a ready to install version of that, just for your own ease.


Kirstin

July 6, 2015 at 2:31 pm

Dean,

I can’t thank you enough. You have really gone above and beyond helping me get this working. One last question, the scroll over is not working in the EE Calendar widget. Is there some additional code I can add to the custom functions to make this work also?

Thanks again,
Kirstin


Lorenzo Orlando Caum

  • Support Staff

July 6, 2015 at 4:11 pm

Hi Kirstin, could you provide a link to a page that has the events calendar widget in use?

Thanks


Lorenzo


Kirstin

July 6, 2015 at 4:22 pm

Hi Lorenzo –

http://0ae.f46.myftpupload.com/classes/jun-aug-lts-bh-thur/

I would like the widget to display Event Title and time on scroll over if possible.

Thanks,
Kirstin


Dean

July 7, 2015 at 7:23 am

Hi Kirstin,

It’s the same issue unfortunately.

I can change the code snippet to make it block the themes JavaScript site wide, but that is potentially risky as it could affect features of the theme (keeping it turned off to just one page with the calendar is less risky and didn’t seem to have any issues.)

This will do the site wide removal, but you may want to test it on a your developement server first to find out what, if any, issues it would cause:

function disable_theme_js_on_calendar_page() {
    wp_dequeue_script( 'plugins');
}
add_action( 'wp_enqueue_scripts', 'disable_theme_js_on_calendar_page', 100); 


Kirstin

July 8, 2015 at 9:52 am

Dean –

That caused major issues on other areas of my website. Is there a way just to disable it for the widget?

Thanks again.
Kirstin


Kirstin

July 8, 2015 at 10:00 am

In addition, that code also caused the calendar in the Event Calendar widget to completely disappear.


Lorenzo Orlando Caum

  • Support Staff

July 8, 2015 at 10:24 am

Hi, we can share an updated version of the code that will target the events calendar page that has a shortcode on it along with the calendar widget.

Is this the only page that will have the calendar widget on it?

http://0ae.f46.myftpupload.com/classes/jun-aug-lts-bh-thur/


Lorenzo


Kirstin

July 8, 2015 at 10:29 am

Thanks Lorenzo. No, it will be on all my pages except for the home page.


Lorenzo Orlando Caum

  • Support Staff

July 8, 2015 at 10:38 am

Hi Kirstin, based on what you have shared, this proposed solution would not work as it is deactivating a resource that is causing an issue for the events calendar but at the same time, that resource is used site-wide by your theme.

Note by deactivating, we mean not loading that resource. It currently works for the events calendar page as that is a specific page on your site.


Lorenzo


Kirstin

July 8, 2015 at 11:16 am

So is there no way to display the event title on hover? This renders this widget useless.


Lorenzo Orlando Caum

  • Support Staff

July 8, 2015 at 11:25 am

Hi, I’m not sure that I agree with your comment on the widget as we tracked this to being an issue with your current theme. We’ve provided a possible solution even when your theme developer decided that they could not help:

https://eventespresso.com/topic/short-description-not-working/#post-163075


Lorenzo


Kirstin

July 8, 2015 at 11:41 am

Lorenzo,

Apologies, I am not blaming EE4. I appreciate all the help you have given me. I mean that it is useless within my theme. My theme developers response was not helpful at all and you did provide me a solution. I was just wondering if there is any other way to get an effect on hover.

Kirstin


Lorenzo Orlando Caum

  • Support Staff

July 8, 2015 at 2:24 pm

Hi, from what we have seen, it will not work unless we deactivate that resource sitewide. However, if that is done, then it will cause some issues with your theme on other pages.


Lorenzo

Viewing 17 reply threads

The support post ‘Short Description not working’ 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