Tagged: ,

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #701291

    Hi there,

    My mobile menu icon has changed from the normal ‘hamburger’ to a yellow emoji of a girl:

    Mobile menu

    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.1

    I hope you can help!

    #701696

    Hi 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,
    Rikard

    #701697

    Hey 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,
    Nikko

    #702174

    Thanks Rikard. Details are below:

    #702718

    Hi,

    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,
    Rikard

    #704083

    Hi 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

    #704163

    Hi 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,
    Rikard

    #706729

    Hi 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)

    desktop

    When clicking the menu icon nothing happens but the icon changes to a cross:

    On click

    I hope you can help, as this problem renders my site unusable on mobile.

    Thanks again,

    Steve

    #707000

    Hi 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!
    Nikko

    #707011

    Hi 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
    #707497

    Hey!

    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,
    Nikko

    #708058

    Hi 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

    #708072

    Hi Steve,

    Glad we could help. :) The change I made was remove the comments I have added before.

    Cheers!
    Nikko

    #771089

    Hi 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!

    #772132

    OK, 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.
    #772430

    Hi,

    Sorry for the late response and glad to hear that it’s fixed. Thanks for using Enfold :)

    Best regards,
    Nikko

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