Always expanded when displayed with AJAX
-
Greetings,
Firstly, I’d like to thank the devs for creating such a high-quality, flexible plugin. Excellent job!
Got the following problem:
On my website, https://pixelsafe.ro/, I use Collapse-O-Matic together with Ajax Dropdowns. When the page loads through AJAX, the content of collapsed sections is already expanded (I am not using any instructions in the shortcode and adding [expanded=”false”] did not help.) For a live example, go to the link above, scroll down and select the Samsung phone from the list.I have seen some posts on this forum about a very similar problem (such as this and this).
So the problem I have seems to be a conflict related to Ajax. “For SEO reasons, the content is loaded expanded by default, then collapsed once the content has loaded.”
As for the solution, in the threads above it was very straight-forward, as there was already a callback function once the content has been loaded (pre-implemented by the developer of the conflicting plugin).
This may not be the case with Ajax Dropdowns. Therefore, I might have to write my own callback function. I understood that it should be fairly simple, but I don’t know how to do it.
I am looking for some hints on how can I set up a function that triggers collapse_init() after the content has successfully loaded in my particular case.
Thanks in advance for your reply!
The page I need help with: [log in to see the link]
- The topic ‘Always expanded when displayed with AJAX’ is closed to new replies.