Problem:
The customer experienced an issue where a Kadence accordion, used within a Toolset View block with AJAX filters, stopped functioning correctly after filtering. The accordion worked fine on the initial page load but failed to open after AJAX filtering, suggesting that the AJAX process was breaking the accordion functionality.
Solution:
The problem was caused by the Kadence Accordion's JavaScript not being reinitialized after the AJAX content load. The supporter added custom JavaScript to the View settings to reinitialize the accordion each time the AJAX filter results were updated. The JavaScript snippet used was:
jQuery(document).on('js_event_wpv_parametric_search_results_updated', function(event, data) {
if (typeof window.KadenceBlocksAccordion !== 'undefined' && typeof window.KadenceBlocksAccordion.init === 'function') {
window.KadenceBlocksAccordion.init();
}
});
This solution successfully resolved the issue by ensuring the accordion's functionality was restored after each AJAX filter action.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| - | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
| - | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | - |
Zona horaria del colaborador: America/Sao_Paulo (GMT-03:00)
Este tema contiene 7 respuestas, tiene 2 mensajes.
Última actualización por 1 year, 11 months ago.
Asistido por: Mateus Getulio.