Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #978435

    I have integrated a widget with links in the sidebar on the left side below the main menu. The aim would be that not only the main menu but also the contents of the widget would be displayed on Mobile. Unfortunately, the contents of the widget do not appear when the “Sidebar on Smartphones” option is activated or deactivated.

    Is there a solution?

    What I don’t want is that the contents of the sidebar on the right side are displayed on Mobile. This is also the reason why I deactivated the option “Sidebar on Smartphones”.

    #978730

    Hey Esther,

    I’m not sure I understand the question, could you post a link to your site and point out the elements there please?

    Best regards,
    Rikard

    #978806

    Hi Rikard
    Below you can find a screenshot – hope this helps.

    PS: I know that the easiest way would be to integrate the menu items in the main menu. I’havent done this, because we want to separate this “navigation block”.

    Thank you.
    Best regards, Esther

    #979835

    Hi,
    Please try adding this code to the end of your functions.php file in Appearance > Editor:

    function copy_widget_to_burger(){
    ?>
    <script>
    jQuery(window).click(function(){
      jQuery( "#text-25" ).clone().appendTo( "#av-burger-menu-ul" );
      });
    </script>
    <?php
    }
    add_action('wp_footer', 'copy_widget_to_burger');

    Then add this css in the General Styling > Quick CSS field:

    #av-burger-menu-ul #text-25.widget {
    padding: 0 50px !important;
    text-align: left !important;
    }

    Expected results:
    2018-07-01_093449

    Best regards,
    Mike

    #980132

    Hi Mike

    Thanks so far, almost perfect :-)
    Now only the language switch is missing in the mobile menu. How can it be displayed?
    Besides: obviously it has not adopted the font of the main navigation in the widget :-(

    Best regards,
    Esther

    #980220

    Hi,

    I’m currently not seeing the language switcher on desktop either? Was this disabled?

    Best regards,
    Jordan Shannon

    #984582

    Hi Jordan,
    You can find it at the very end of the Navigation.
    Regards, Esther

    #984686

    Hi,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function copy_polylang_to_burger(){
    ?>
    <script>
    jQuery(window).click(function(){
      jQuery( "#polylang-3" ).clone().appendTo( "#av-burger-menu-ul" );
      });
    </script>
    <?php
    }
    add_action('wp_footer', 'copy_polylang_to_burger');

    Please test this code before and after the other code, as it’s placement may determine the order of the mobile menu.

    Best regards,
    Mike

    #984695

    Hi Mike

    Very cool! Thanks for that :-)

    Best regards,
    Esther

    #984874

    Hi,

    Glad we could help!

    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    Don’t forget to bookmark Enfold Documentation for future reference.

    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.