-
AuthorPosts
-
June 27, 2018 at 2:38 pm #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”.
June 28, 2018 at 5:23 am #978730Hey 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,
RikardJune 28, 2018 at 9:55 am #978806Hi 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, EstherJuly 1, 2018 at 3:42 pm #979835Hi,
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; }
Best regards,
MikeJuly 2, 2018 at 4:00 pm #980132Hi 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,
EstherJuly 2, 2018 at 7:03 pm #980220Hi,
I’m currently not seeing the language switcher on desktop either? Was this disabled?
Best regards,
Jordan ShannonJuly 12, 2018 at 9:54 am #984582Hi Jordan,
You can find it at the very end of the Navigation.
Regards, EstherJuly 12, 2018 at 12:54 pm #984686Hi,
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,
MikeJuly 12, 2018 at 1:03 pm #984695Hi Mike
Very cool! Thanks for that :-)
Best regards,
EstherJuly 12, 2018 at 8:03 pm #984874Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.