Advertisement
shekhar77

Add some JS to the WordPress Using Js

Jan 16th, 2017
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. add_action('wp_head', 'test_this_script');
  2. function test_this_script() {
  3. ?>
  4. <script>
  5. (function($) {
  6. $(document).ready(function(){
  7. $('li.wpml-ls-current-language > a').removeAttr('href');
  8. $('li.wpml-ls-current-language > a').attr('href', 'javascript:void(0)');
  9. });
  10. })(jQuery);
  11. </script>
  12. <?php
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement