Created
May 23, 2025 00:05
-
-
Save neilgee/f4e1e4fb879cd0722e386ceb6a96596a to your computer and use it in GitHub Desktop.
Beaver Builder - PowePack Testimonial Carousel change pagination labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($) { | |
function updateOwlNavLabels() { | |
$('.owl-next .sr-only').text('Next'); | |
$('.owl-prev .sr-only').text('Previous'); | |
$('.owl-next').attr('title', 'Next'); | |
$('.owl-prev').attr('title', 'Previous'); | |
} | |
// Run once and then repeatedly to catch dynamic loads | |
updateOwlNavLabels(); | |
const interval = setInterval(updateOwlNavLabels, 500); | |
setTimeout(() => clearInterval(interval), 5000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment