-
AuthorPosts
-
September 18, 2018 at 10:03 am #1011171
Hello,
I created a site with 1 anchor link that matches the “recensioni” item.
It works well on the desktop but on the mobile screen clicking on the item is ok link but the menu remains open on the page!
Any idea?I provide the precise link to the site in private content.
Kind regardsSeptember 18, 2018 at 3:40 pm #1011355Hey topmedialab,
Thank you for using Enfold.
Please update the theme to the latest version 4.4.1. That should fix any issues you are currently experiencing :)
To update to the latest version follow the simple instructions here. (Or if you want the super detailed explanation you can read this blog post)
I could not reproduce the problem with the latest version.
Best regards,
GünterSeptember 19, 2018 at 12:42 pm #1011788Hi Günter,
I have updated the theme Enfold to the latest version 4.4.1 but the problem is not solved :I(
You can verify?Best regards.
September 19, 2018 at 11:17 pm #1012050Hi,
I have marked the topic for Gunter, so he can review :)
Best regards,
BasilisSeptember 20, 2018 at 3:41 pm #1012359Ok Basilis, thanks I wait.
I have a bit of urgency in solving this error!Best regards,
September 20, 2018 at 4:24 pm #1012379Besides, I have another question: I set favicon (.png and size 32×32).
If I save my site on the desktop or add to favorites, why does not an icon appear but a preview of the page? See in private!Thanks and looking forward to hearing from you.
September 23, 2018 at 11:27 am #1013278Hi,
This article shows you how to set homescreen icons for apple and android: https://support.wix.com/en/article/setting-the-homescreen-icon-for-iphones-ipads-and-android-devices
Basically you could use this code to add homescreen icons to the Enfold head section:
function avia_header_scripts_custom_icons(){ ?> <link rel="apple-touch-icon" sizes="180x180" href="CHANGE_THIS_TO_IMAGE_FULL_URL.png" /> <link rel="icon" type="image/png" href="CHANGE_THIS_TO_IMAGE_FULL_URL.png" sizes="192x192"> <?php } add_action('wp_head', 'avia_header_scripts_custom_icons');
You can add the code to the child theme functions.php, then replace CHANGE_THIS_TO_IMAGE_FULL_URL.png with your icon which should be 180×180 and 192×192 pixel.
Best regards,
PeterSeptember 24, 2018 at 3:21 pm #1013659Thanks a lot for your help Peter!
I tried and the icon is seen perfect on different devices.I await a solution to solve the problem of the menu that I found on mobile (test on iphone and android).
Best regards.
September 25, 2018 at 5:36 am #1013985Hi,
Thanks for the update. We modified the js > avia.js file based on this thread.
// https://kriesi.at/support/topic/close-mobile-menu-by-clicking-on-active-navigation-item
The mobile menu should close properly now when the current menu item is clicked.
Best regards,
IsmaelSeptember 25, 2018 at 9:12 am #1014059Hi Ismael!
I confirm that the menu now closes correctly after I click but the link does not work anymore.The item “reviews” in menu is a custom link structure with anchor (http://studioerredue.it/#recensioni)
Now by clicking on “reviews” from Home page you can see that it does not work jump to yet and that the url only sees ‘http://studioerredue.it/#’
Can you check why?Thank you!
September 25, 2018 at 2:12 pm #1014181Hi,
Please check your website again. I added following code to the functions.php:
function avia_footer_scripts_close_menu(){ ?> <script> jQuery('.html_av-submenu-display-click').on( 'click', 'a', function (e) { var avia_custom_burger_menu = jQuery('.av-burger-menu-main a').find('.av-hamburger'); avia_custom_burger_menu.parents('a').eq(0).trigger('click'); }); </script> <?php } add_action('wp_footer', 'avia_footer_scripts_close_menu', 999);
Best regards,
PeterSeptember 25, 2018 at 3:17 pm #1014225Hey guys,
you helped me with the mobile menu from another site #876573
Now I have the same problem. I want to show the page “Impressum” and “Datenschutz” only in the mobile menu but not on desktop.
I update enfold and use classes but it doesn´t work :(And the site doesn´t look the same in safari on iphone. Some css changes doesn´t work…why?
Thank you
September 25, 2018 at 4:04 pm #1014252I must tell you that the mobile problem has happily disappeared! But then I tried it on the desktop and here it generates problems (I send you in private).
For the icon this is seen if I add the site at Home, you can set a custom icon even when I add to favorites/bookmarks? (see link 2 in private)
Thanks.
September 26, 2018 at 9:27 am #1014601Hi,
@mary301187 – please create a new thread and we’ll help you there.must tell you that the mobile problem has happily disappeared! But then I tried it on the desktop and here it generates problems (I send you in private).
I tried to reproduce the issue with Chrome, Edge and Firefox but I couldn’t. Please try to clear your browser cache and check the website again.
Regarding the icon – according to: https://css-tricks.com/snippets/html/set-iphone-bookmark-icon/ following code should enable you to set an bookmark icon:
function avia_header_scripts_custom_bookmark_icons(){ ?> <link rel="apple-touch-icon-precomposed" href="icon" /> <link rel="apple-touch-icon" href="http://mywebsite.com/iphone-icon.png"/> <?php } add_action('wp_head', 'avia_header_scripts_custom_bookmark_icons');
Replace http://mywebsite.com/iphone-icon.png with the url to your icon
Best regards,
PeterSeptember 26, 2018 at 11:21 am #1014667Good for the function for set iPhone bookmark icon. :)
The menu continues to have strange behavior as you see for a small fraction of time it opens on the right the menu like the mobile version (see video in private link)
I cleared cache and tested on different browsers (Firefox – Chrome ).
Can you do another check for me?Thank you!
September 26, 2018 at 1:54 pm #1014727Hi,
Ah – now I could reproduce the issue. I could fix it on my end with following code:
function avia_footer_scripts_close_menu(){ ?> <script> jQuery('.html_av-submenu-display-click').on( 'click', 'a', function (e) { if(! jQuery('html').hasClass('av-burger-overlay-active')) return; var avia_custom_burger_menu = jQuery('.av-burger-menu-main a').find('.av-hamburger'); avia_custom_burger_menu.parents('a').eq(0).trigger('click'); }); </script> <?php } add_action('wp_footer', 'avia_footer_scripts_close_menu', 999);
Please check if it works on your end too.
Best regards,
PeterSeptember 27, 2018 at 9:52 am #1015197I confirm that the bug has disappeared and now it works correctly!
Thanks for the complete support!
Have a nice day!September 27, 2018 at 3:47 pm #1015343Hi topmedialab,
Glad it is working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.