Ajax load posts accordion initial state open

2 replies · opened Jul 10, 2019

TthemepackJul 10, 2019

Version: 5.9
I have managed to follow https://rudrastyh.com/wordpress/load-more-posts-ajax.html to load posts with ajax, however i'm using the accordion in canvas to display the posts and the posts that get loaded in with ajax are always 'open'. Hoe can I set the initial state of ajax loaded posts to 'closed'

SSemicolon WebSTAFFJul 10, 2019

Hello,

According to the Issue you are facing it appears that the Accordions loaded from the AJAX Requests do not get initialized. Simply consider calling the SEMICOLON.widget.accordions(); after the AJAX success Callback.

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

TthemepackJul 10, 2019

Awesome! Thank you so much.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard