Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>.wpml-ls-statics-footer { display: none; } </style>
- <script>
- jQuery(function($){
- var english = jQuery('.wpml-ls-link:first').attr('href');
- var spanish = jQuery('.wpml-ls-link:last').attr('href');
- $('.mobile_menu_bar')
- .after('<li class="menu-item wpml-ls-slot-15 wpml-ls-item wpml-ls-item-es wpml-ls-current-language wpml-ls-menu-item wpml-ls-first-item menu-item-type-wpml_ls_menu_item menu-item-object-wpml_ls_menu_item menu-item-wpml-ls-15-es"><a title="Español" href="' + spanish + '"><img class="wpml-ls-flag" src="http://www.phareabogados.cl/wordpress/wp-content/plugins/sitepress-multilingual-cms/res/flags/es.png" alt="es" title="Español"><span class="wpml-ls-native">Español</span></a></li>')
- .after('<li class="menu-item wpml-ls-slot-15 wpml-ls-item wpml-ls-item-en wpml-ls-menu-item wpml-ls-last-item menu-item-type-wpml_ls_menu_item menu-item-object-wpml_ls_menu_item menu-item-wpml-ls-15-en"><a title="English" href="' + english + '"><img class="wpml-ls-flag" src="http://www.phareabogados.cl/wordpress/wp-content/plugins/sitepress-multilingual-cms/res/flags/en.png" alt="en" title="English"><span class="wpml-ls-native">English</span></a></li>')
- });
- </script>
- <script type="text/javascript">
- jQuery( document ).ready(function() {
- jQuery('span.mobile_menu_bar.et_pb_header_toggle.et_toggle_slide_menu').insertAfter('.menu-item-wpml-ls-15-es');
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement