Posted: 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 #. |
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? |
|
|
hoosierhillsbaptistcamp.org/registration |
|
Yes, i have added events. |
|
Hi Chris, Can you provide a link to the page with the Accordion on please? |
|
Sorry, I removed it last night, trying something. It is back on hoosierhillsbaptistcamp.org/registration |
|
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. |
|
It worked! Thanks! |
|
What do I change to make it open to just a short description rather than the full listing? |
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. |
|
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.