Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wpml_menu_dropdown_custom_scripts() {
- ?>
- <script>
- ( function( $ ) {
- $(document).ready(function() {
- $('li.menu-item-language-current a').attr({'data-toggle':'dropdown', 'class': "dropdown-toggle", 'aria-haspopup':'true'});
- $('li.menu-item-language-current').find('ul.sub-menu').addClass('dropdown-menu');
- });
- }
- )( jQuery )
- </script>
- <?php
- }
- add_action( 'wp_head', 'wpml_menu_dropdown_custom_scripts');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement