jQuery(document).on('bp_ajax_request_complete', function() {
// Reinitialize Breakdance sticky (if you're using Breakdance's sticky)
if (typeof odFrontend !== 'undefined' && typeof odFrontend.refresh === 'function') {
odFrontend.refresh(); // Re-run Breakdance sticky script
}
// Alternatively, if you're using pure CSS sticky, force a reflow:
var sidebar = document.querySelector('.your-sidebar-class'); // Replace with your actual sidebar class
if (sidebar) {
sidebar.offsetHeight; // Forces a reflow to trigger sticky recalculation
}
});