Tagged: emoji, mobile menu
-
AuthorPosts
-
October 19, 2016 at 1:51 pm #701291
Hi there,
My mobile menu icon has changed from the normal ‘hamburger’ to a yellow emoji of a girl:
Also, the mobile menu doesn’t open – when you click the girl it just changes into an ‘X’ icon.
I have tried the quick css solution: `#mobile-advanced li > a:before, .html_header_mobile_behavior #mobile-advanced span > a:before, #mobile-advanced .mega_menu_title:before {
content: “\25BA”;
}`
But that didn’t work. I’m using Enfold 3.5.1I hope you can help!
October 20, 2016 at 7:53 am #701696Hi skrinks,
Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Thanks,
RikardOctober 20, 2016 at 7:53 am #701697Hey skrinks!
Kindly update your website to the latest version of Enfold theme. Also don’t forget to backup, for more information on updating and backup please refer to this link: http://kriesi.at/archives/the-complete-guide-to-updating-enfold
Best regards,
NikkoOctober 21, 2016 at 6:41 am #702174Thanks Rikard. Details are below:
October 22, 2016 at 7:12 am #702718Hi,
Could you try updating the theme to the latest version (3.8) to see if that helps please? http://kriesi.at/documentation/enfold/updating-your-theme-files/. Also please try to keep all of your plugins updated.
Thanks,
RikardOctober 26, 2016 at 2:04 am #704083Hi Rikard,
I have updated the theme to 3.8 and the problem is still there. I have also cleared the site cache and my browser cache.
Looking forward to your advice.
Thanks,
Steve
October 26, 2016 at 8:30 am #704163Hi Steve,
Thanks for the feedback. Could you try deactivating all plugins to see if one of them is causing a conflict please? Also please try to update all plugins and WordPress itself to the latest versions.
Best regards,
RikardNovember 1, 2016 at 2:48 pm #706729Hi Rikard,
I have updated all plugins and updated WP to 4.6.1. I have deactivated all plugins also and the issue is still there.
BTW on desktop I don’t get the girl emoji but a square icon instead. (below)
When clicking the menu icon nothing happens but the icon changes to a cross:
I hope you can help, as this problem renders my site unusable on mobile.
Thanks again,
Steve
November 2, 2016 at 8:29 am #707000Hi Steve,
I commented out this the whole function in functions.php of your child theme which is causing the issue:
if(!function_exists('avia_register_frontend_scripts')) { if(!is_admin()){ add_action('wp_enqueue_scripts', 'avia_register_frontend_scripts'); } function avia_register_frontend_scripts() { $template_url = get_template_directory_uri(); $child_theme_url = get_stylesheet_directory_uri(); //register js wp_register_script( 'avia-compat', $template_url.'/js/avia-compat.js', array('jquery'), 1, false ); //needs to be loaded at the top to prevent bugs wp_register_script( 'avia-default', $child_theme_url.'/js/avia.js', array('jquery'), 1, true ); wp_register_script( 'avia-shortcodes', $template_url.'/js/shortcodes.js', array('jquery'), 1, true ); wp_register_script( 'avia-prettyPhoto', $child_theme_url.'/js/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery', "3.1.5", true); wp_register_script( 'avia-html5-video', $template_url.'/js/mediaelement/mediaelement-and-player.min.js', 'jquery', "1", true); wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'avia-compat' ); wp_enqueue_script( 'avia-default' ); wp_enqueue_script( 'avia-shortcodes' ); wp_enqueue_script( 'avia-prettyPhoto' ); wp_enqueue_script( 'avia-html5-video' ); if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } //register styles wp_register_style( 'avia-style' , $child_theme_url."/style.css", array(), '1', 'screen' ); //register default style.css file. only include in childthemes. has no purpose in main theme wp_register_style( 'avia-grid' , $template_url."/css/grid.css", array(), '1', 'screen' ); wp_register_style( 'avia-base' , $template_url."/css/base.css", array(), '1', 'screen' ); wp_register_style( 'avia-layout', $template_url."/css/layout.css", array(), '1', 'screen' ); wp_register_style( 'avia-scs', $template_url."/css/shortcodes.css", array(), '1', 'screen' ); wp_register_style( 'avia-custom', $template_url."/css/custom.css", array(), '1', 'screen' ); wp_register_style( 'avia-prettyP', $child_theme_url."/js/prettyPhoto/css/prettyPhoto.css", array(), '1', 'screen' ); wp_register_style( 'avia-media' , $template_url."/js/mediaelement/skin-1/mediaelementplayer.css", array(), '1', 'screen' ); //register styles if($child_theme_url != $template_url) { wp_enqueue_style( 'avia-style'); } wp_enqueue_style( 'avia-grid'); wp_enqueue_style( 'avia-base'); wp_enqueue_style( 'avia-layout'); wp_enqueue_style( 'avia-scs'); wp_enqueue_style( 'avia-prettyP'); wp_enqueue_style( 'avia-media'); global $avia; $safe_name = avia_backend_safe_string($avia->base_data['prefix']); if( get_option('avia_stylesheet_exists'.$safe_name) == 'true' ) { $avia_upload_dir = wp_upload_dir(); $avia_dyn_stylesheet_url = $avia_upload_dir['baseurl'] . '/dynamic_avia/'.$safe_name.'.css'; wp_register_style( 'avia-dynamic', $avia_dyn_stylesheet_url, array(), '1', 'screen' ); wp_enqueue_style( 'avia-dynamic'); } wp_enqueue_style( 'avia-custom'); } }
Try to check if it’s good on your end also? some js or css might need to be adjusted so it works properly with the latest version of the theme.
Cheers!
NikkoNovember 2, 2016 at 8:56 am #707011Hi Nikko,
That’s made it worse. Now the mobile menu has disappeared completely and other styling issues like portfolio images and icons are missing.
Can you please reverse that change and try another solution?- This reply was modified 8 years ago by skrinks. Reason: Remove URLs from public site
November 3, 2016 at 4:40 am #707497Hey!
It was good when I checked it on a mobile device, can you let us know what device you are using to check it? also can you try to remove this code and check (if it doesn’t work, you can return the code to its place):
function modify_jquery() { if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js'); wp_enqueue_script('jquery'); } } add_action('init', 'modify_jquery'); if(!function_exists('avia_register_frontend_scripts')) { if(!is_admin()){ add_action('wp_enqueue_scripts', 'avia_register_frontend_scripts'); } function avia_register_frontend_scripts() { $template_url = get_template_directory_uri(); $child_theme_url = get_stylesheet_directory_uri(); //register js wp_register_script( 'avia-compat', $template_url.'/js/avia-compat.js', array('jquery'), 1, false ); //needs to be loaded at the top to prevent bugs wp_register_script( 'avia-default', $child_theme_url.'/js/avia.js', array('jquery'), 1, true ); wp_register_script( 'avia-shortcodes', $template_url.'/js/shortcodes.js', array('jquery'), 1, true ); wp_register_script( 'avia-prettyPhoto', $child_theme_url.'/js/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery', "3.1.5", true); wp_register_script( 'avia-html5-video', $template_url.'/js/mediaelement/mediaelement-and-player.min.js', 'jquery', "1", true); wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'avia-compat' ); wp_enqueue_script( 'avia-default' ); wp_enqueue_script( 'avia-shortcodes' ); wp_enqueue_script( 'avia-prettyPhoto' ); wp_enqueue_script( 'avia-html5-video' ); if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } //register styles wp_register_style( 'avia-style' , $child_theme_url."/style.css", array(), '1', 'screen' ); //register default style.css file. only include in childthemes. has no purpose in main theme wp_register_style( 'avia-grid' , $template_url."/css/grid.css", array(), '1', 'screen' ); wp_register_style( 'avia-base' , $template_url."/css/base.css", array(), '1', 'screen' ); wp_register_style( 'avia-layout', $template_url."/css/layout.css", array(), '1', 'screen' ); wp_register_style( 'avia-scs', $template_url."/css/shortcodes.css", array(), '1', 'screen' ); wp_register_style( 'avia-custom', $template_url."/css/custom.css", array(), '1', 'screen' ); wp_register_style( 'avia-prettyP', $child_theme_url."/js/prettyPhoto/css/prettyPhoto.css", array(), '1', 'screen' ); wp_register_style( 'avia-media' , $template_url."/js/mediaelement/skin-1/mediaelementplayer.css", array(), '1', 'screen' ); //register styles if($child_theme_url != $template_url) { wp_enqueue_style( 'avia-style'); } wp_enqueue_style( 'avia-grid'); wp_enqueue_style( 'avia-base'); wp_enqueue_style( 'avia-layout'); wp_enqueue_style( 'avia-scs'); wp_enqueue_style( 'avia-prettyP'); wp_enqueue_style( 'avia-media'); global $avia; $safe_name = avia_backend_safe_string($avia->base_data['prefix']); if( get_option('avia_stylesheet_exists'.$safe_name) == 'true' ) { $avia_upload_dir = wp_upload_dir(); $avia_dyn_stylesheet_url = $avia_upload_dir['baseurl'] . '/dynamic_avia/'.$safe_name.'.css'; wp_register_style( 'avia-dynamic', $avia_dyn_stylesheet_url, array(), '1', 'screen' ); wp_enqueue_style( 'avia-dynamic'); } wp_enqueue_style( 'avia-custom'); } }
Best regards,
NikkoNovember 4, 2016 at 7:31 am #708058Hi Nikko,
It’s all good now – not sure if you changed anything between my last post and now but all is perfect on mobile and desktop.
Thanks a lot for your help!
Cheers,
Steve
November 4, 2016 at 8:02 am #708072Hi Steve,
Glad we could help. :) The change I made was remove the comments I have added before.
Cheers!
NikkoApril 3, 2017 at 1:11 pm #771089Hi guys,
This problem has returned again. I’m running the latest version of Enfold (4.0.5) and WordPress 4.7.3, and am viewing the site on an iPhone 7 on Safari and Chrome.
Please see previous fixes suggested by Nikko, and login details in the private content area.
Thanks!
April 5, 2017 at 2:38 am #772132OK, I’ve fixed the problem by removing the code:
function modify_jquery() { if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js'); wp_enqueue_script('jquery'); } } add_action('init', 'modify_jquery'); if(!function_exists('avia_register_frontend_scripts')) { if(!is_admin()){ add_action('wp_enqueue_scripts', 'avia_register_frontend_scripts'); } function avia_register_frontend_scripts() { $template_url = get_template_directory_uri(); $child_theme_url = get_stylesheet_directory_uri(); //register js wp_register_script( 'avia-compat', $template_url.'/js/avia-compat.js', array('jquery'), 1, false ); //needs to be loaded at the top to prevent bugs wp_register_script( 'avia-default', $child_theme_url.'/js/avia.js', array('jquery'), 1, true ); wp_register_script( 'avia-shortcodes', $template_url.'/js/shortcodes.js', array('jquery'), 1, true ); wp_register_script( 'avia-prettyPhoto', $child_theme_url.'/js/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery', "3.1.5", true); wp_register_script( 'avia-html5-video', $template_url.'/js/mediaelement/mediaelement-and- player.min.js', 'jquery', "1", true); wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'avia-compat' ); wp_enqueue_script( 'avia-default' ); wp_enqueue_script( 'avia-shortcodes' ); wp_enqueue_script( 'avia-prettyPhoto' ); wp_enqueue_script( 'avia-html5-video' ); if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } //register styles wp_register_style( 'avia-style' , $child_theme_url."/style.css", array(), '1', 'screen' ); //register default style.css file. only include in childthemes. has no purpose in main theme wp_register_style( 'avia-grid' , $template_url."/css/grid.css", array(), '1', 'screen' ); wp_register_style( 'avia-base' , $template_url."/css/base.css", array(), '1', 'screen' ); wp_register_style( 'avia-layout', $template_url."/css/layout.css", array(), '1', 'screen' ); wp_register_style( 'avia-scs', $template_url."/css/shortcodes.css", array(), '1', 'screen' ); wp_register_style( 'avia-custom', $template_url."/css/custom.css", array(), '1', 'screen' ); wp_register_style( 'avia-prettyP', $child_theme_url."/js/prettyPhoto/css/prettyPhoto.css", array(), '1', 'screen' ); wp_register_style( 'avia-media' , $template_url."/js/mediaelement/skin-1/mediaelementplayer.css", array(), '1', 'screen' ); //register styles if($child_theme_url != $template_url) { wp_enqueue_style( 'avia-style'); } wp_enqueue_style( 'avia-grid'); wp_enqueue_style( 'avia-base'); wp_enqueue_style( 'avia-layout'); wp_enqueue_style( 'avia-scs'); wp_enqueue_style( 'avia-prettyP'); wp_enqueue_style( 'avia-media'); global $avia; $safe_name = avia_backend_safe_string($avia->base_data['prefix']); if( get_option('avia_stylesheet_exists'.$safe_name) == 'true' ) { $avia_upload_dir = wp_upload_dir(); $avia_dyn_stylesheet_url = $avia_upload_dir['baseurl'] . '/dynamic_avia/'.$safe_name.'.css'; wp_register_style( 'avia-dynamic', $avia_dyn_stylesheet_url, array(), '1', 'screen' ); wp_enqueue_style( 'avia-dynamic'); } wp_enqueue_style( 'avia-custom'); } }
- This reply was modified 7 years, 7 months ago by skrinks.
April 5, 2017 at 11:48 am #772430Hi,
Sorry for the late response and glad to hear that it’s fixed. Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.