Good morning. I’m translating my site with WMPL. I currently display the long selector correctly on the deskto menu, but I would like to display it on the mobile next to the burger menu, and not when I expand it.
Can something be done?
Thank you
Fabrizio
Hey fabmcmull,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (max-width: 767px) {
#top #header #menu-item-wpml-ls-37-it {
display: block;
margin-top: -47px;
margin-right: 10px;
}
}
If you need further assistance please let us know.
Best regards,
Victoria
The result is almost what I wanted to achieve, but not when I click on the Italian flag on mobile disappears that English. Can something be done?
Hi Fabrizio,
Here is the code you can put in your funtions.php
function move_flag_on_mobile(){
if ( wp_is_mobile() ) {
?>
<script>
jQuery(window).load(function(){
jQuery('#menu-item-wpml-ls-37-it .sub-menu #menu-item-wpml-ls-37-en').insertAfter('#menu-item-wpml-ls-37-it');
});
</script>
<?php
}
}
If you need further assistance please let us know.
Best regards,
Victoria
L’ho provato ma non funziona. Quando clicco sulla bandierina italiana, continua a caricare la pagina in italiano senza darmi la possibilità di accedere a quella in inglese.
Hi fabmcmull,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria