Support

Home Forums Event Espresso Premium Accordion not working

Accordion not working

Posted: February 10, 2014 at 3:06 pm

Viewing 9 reply threads


Chris Chavez

February 10, 2014 at 3:06 pm

newly installed. It displays correctly but when you click the category nothing happens… it does not expand. In the url, the end shows a #.


Tony

  • Support Staff

February 10, 2014 at 3:50 pm

Hi Chris,

Just to confirm, have you added Events to the Category your clicking on?

Can you link to the page so we can see what’s happening please?


Chris Chavez

February 10, 2014 at 4:01 pm

hoosierhillsbaptistcamp.org/registration


Chris Chavez

February 10, 2014 at 4:02 pm

Yes, i have added events.
hoosierhillsbaptistcamp.org/registration


Dean

February 11, 2014 at 12:20 am

Hi Chris,

Can you provide a link to the page with the Accordion on please?


Chris Chavez

February 11, 2014 at 6:00 am

Sorry, I removed it last night, trying something. It is back on hoosierhillsbaptistcamp.org/registration


Dean

February 11, 2014 at 6:29 am

Hi,

Thanks for that.

It looks like the theme is wrapping the script in paragraph tags and changing some of the symbols like & to their HTML entities. Basically this is breaking the script.

You could try wrapping the shortcode in raw tags, like so [raw][EVENT_CUSTOM_VIEW template_name=”category-accordion”][/raw] but this will only work if your theme supports it.

Other than that it is either a case of referring to the theme developer to ask them to stop the content formatting changes they have added or to look to the code and try to stop them.


Chris Chavez

February 11, 2014 at 6:55 am

It worked! Thanks!


Chris Chavez

February 11, 2014 at 7:45 am

What do I change to make it open to just a short description rather than the full listing?


Josh

  • Support Staff

February 11, 2014 at 11:42 am

Hi Chris,

The change you make is in the accordion’s index.php file on line 126 where it says:

echo '<div class="event-desc">'.espresso_format_content($event->event_desc).'</div>';

You’ll change it to this:

echo '<div class="event-desc">'.espresso_format_content(array_shift(explode('<!--more-->', $event->event_desc))).'</div>'; 

Then you can add a more tag where yo want to the short description to end, like what’s illustrated here.

Viewing 9 reply threads

The support post ‘Accordion 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