Last active
August 29, 2015 13:56
-
-
Save dimsemenov/8912669 to your computer and use it in GitHub Desktop.
This file contains 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
// Add this to your theme functions.php | |
function add_additional_rs_code() { | |
?> | |
if(window.location.hash.indexOf('video') > -1) { | |
jQuery('body').scrollTo('.royalSlider'); | |
} | |
<?php | |
} | |
add_action('new_rs_after_js_init_code', 'add_additional_rs_code'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment