Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #525999

    Hello,
    I use the Multisite Language switcher widget to manage translation and I would like to insert the link to switch form one language to another into the main menu, as the last menu item.

    Right now, I insert the link as a widget with the following code in the functions.php child theme
    add_action( ‘ava_inside_main_menu’, ‘enfold_customization_header_widget_area’ );
    function enfold_customization_header_widget_area() {
    dynamic_sidebar( ‘header’ );
    }
    Here is the result
    https://uiuxdesigner.ch

    The problem is the link is after the search icon and on mobile, the link is outside the menu which I would like to be inside.
    How can I insert the widget in order the link to switch form one language to another appears as the last main menu item ?

    Thanks for your help,
    Xavier

    #526582

    Hey Xavier,

    I couldn’t see any language switcher anywhere on your site, did you remove it? We need to inspect the element in order to give you custom CSS.

    Thanks,
    Rikard

    #526620

    Hello,
    Sorry you were redirected to the EN version where I forgot to add the widget.
    It is done now.
    I shared an admin access in the private content.

    #527713

    Hi!

    it can’t be easily implemented into your mobile menu, because it’s a widget item and not a menu item. But try this code in Quick CSS field, so it will show up when using mobile devices:

    @media only screen and (max-width: 767px) {
    .language {
    display: block;
    height: 0;
    position: relative;
    top: -75px;
    }}
    

    Cheers!
    Andy

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.