Home Forums Event Espresso Premium Show Extract of Events in My Bookings

Show Extract of Events in My Bookings

Posted: July 5, 2018 at 7:44 am


July 5, 2018 at 7:44 am

Regarding this post of mine, which worked fine:

Now after changing the website’s theme something is wrong. The right column wheel icon inside “My Events” does not work, it does not open the event excerpt nor the event operations, it’s simply frozen.


  • Support Staff

July 5, 2018 at 10:44 am

Hi there,

That likely means there is a JavaScript error on the page and the JS EE uses to open the details section can’t run.

If you view the page in question, open up Dev tools on your browser (For example Chrome Dev Tools) and look in the ‘Console’ section, does it show any errors?


July 5, 2018 at 11:15 am

This is what shows Chrome console:


  • Support Staff

July 5, 2018 at 11:47 am

That’s a very common error if the theme isn’t coded correctly to follow WordPress coding standards with using the bundled version of jQuery and using jQuery in no-conflict mode. Can you check to see if the theme loads in a non-bundled version of the jQuery library?


  • Support Staff

July 5, 2018 at 11:59 am

I checked the source of the site’s home page and I’m seeing the same error, and the code in question isn’t following coding standards:

I can advise changing where it uses the $ shorthand to use jQuery instead. e.g.

jQuery.fn.stars = function() {
    return jQuery(this).each(function() {
        // Get the value
        var val = parseFloat(jQuery(this).html());
        // Make sure that the value is in 0 - 5 range, multiply to get width
        var size = Math.max(0, (Math.min(5, val))) * 16;
        // Create stars holder
        var $span = jQuery('<span />').width(size);
        // Replace the numerical value with stars


July 6, 2018 at 1:31 am

The js code above seems not to fix the issue.
Note that the reported issue with My Events only occurs when changing the file content-espresso_my_events-event_section.template
line 57 <?php echo apply_filters( 'the_content', $event->description() ); ?>
for this: <?php echo apply_filters( 'the_excerpt', $event->short_description() ); ?>


  • Support Staff

July 6, 2018 at 7:34 am

Regardless, your custom JavaScript code is throwing errors and needs to be fixed.

If you new theme is running custom filters on the_excerpt, then that could be what’s breaking things. So you could change your custom code to be:

<?php echo $event->short_description(); ?>


July 6, 2018 at 8:38 am

The code works to display the short description in My Events. Thank you.

The support post ‘Show Extract of Events in My Bookings’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  ardiaful 8 months, 2 weeks ago ago

Topic Tags



This topic is:
Do NOT follow this link or you will be banned from the site!