Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function rs_enter_fullscreen_on_slide_click() {
?>
$('.royalSlider').each(function() {
var slider = $(this).data('royalSlider');
// listen for slide click
slider.ev.on('rsSlideClick', function() {
// enter fullscreen mb_decode_numericentity
slider.enterFullscreen();
});
});
<?php
}
add_action('new_rs_after_js_init_code', 'rs_enter_fullscreen_on_slide_click');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment