Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #540993

    Hi,

    When I view my site on mobile it shows the mobile menu button. But once I click on it, the menu doesn’t show. Interestingly, the “close menu” button does appear.

    Here is the link to my site: http://www.lovelifesolved.com/

    I have already deactivated all plugins, cleared the cache, checked if anything in the functions.php of my child theme caused the error, but no results. I have tested it on several IOS devices. Browsers: Chrome, Safari. (both up to date)

    I’d be thankful for any help.

    Thx!
    Julian

    #541065

    Hi aIVIis!

    Your link redirects me to the WordPress login.

    Best regards,
    Elliott

    #541070

    Hey,

    Sorry! You should be able to access the site now.

    #541217

    Hey!

    I see what you mean. It looks like your using Enfold 3.3.2. Go ahead and update to the latest version, 3.4.4, and let us know when your done.

    Best regards,
    Elliott

    #541607

    Hey Elliott,

    I updated to 3.4.4 but nothing changed. Could you please take another look?

    Best,

    Julian

    #541958

    Hi!

    Let’s try the following.

    1. Deactivate all plugins.

    2. Completely delete Enfold from your WordPress theme directory before downloading + uploading a fresh copy from themeforest.

    I believe after doing the above two steps the problem will be gone but if your still having issues after that send us a WordPress login and we’ll take a closer look.

    Cheers!
    Elliott

    #542421

    Did everything you told me but the problem still persists. In addition I found following error below the footer:
    “Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘add_custom_script’ not found or invalid function name in /home/lovelife/public_html/wp-includes/plugin.php on line 503”

    Could you please take a look?

    #542857

    Hi,

    I couldn’t see any error messages but I can see the problem, do we have permission to disable plugins for testing purposes?

    Regards,
    Rikard

    #542982

    yes

    #542983

    the error message is below the socket. it’s hard to see because it has almost the same color.

    #543772

    Hey!

    The problem seems to be in your child theme. I activated Enfold instead of the child theme and deactivated all plugins (you have quite a few) and the problems went away.

    Regards,
    Elliott

    #543927

    Hey Elliott,

    That’s good to know, but what can I do now? Could you take a look at my functions.php code?

    <?php
    
    // =============================================================================
    // FUNCTIONS.PHP
    // -----------------------------------------------------------------------------
    // Overwrite or add your own custom functions in this file.
    // =============================================================================
    
    // Custom Class for every element
    
    add_theme_support('avia_template_builder_custom_css');
    
    add_action('wp_footer', 'add_custom_script');
    
    function change_shortcodesjs() {
       wp_dequeue_style( 'avia-base' );
       wp_enqueue_style( 'avia-base-child', get_stylesheet_directory_uri().'/css/base.css', array(), '2', 'all' );
    }
    if(!is_admin()){
    add_action( 'wp_enqueue_scripts', 'change_shortcodesjs', 100 );
    }
    
    function change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );
    
    add_filter('avf_default_icons','avia_replace_standard_icon', 10, 1);
    
    function avia_replace_standard_icon($icons)
    {
    $icons['mobile_menu']	 = array( 'font' =>'entypo-fontello', 'icon' => 'ue811');
    return $icons;
    }
    
    add_filter( 'jpeg_quality', create_function( '', 'return 100;' ) );
    
    add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
    function enfold_customization_modify_thumb_size( $size ) {
    	$size['entry_with_sidebar'] 	= array('width'=>854, 'height'=>569);
    	return $size;	
    }
    
    ?>

    Thx!

    #544015

    Hey!

    Probably this line.

    add_action('wp_footer', 'add_custom_script');
    

    I don’t think we have any function named “add_custom_script” and you don’t appear to have any function defined by that name.

    Cheers!
    Elliott

    #544127

    I deleted the line and it solved the error below the footer. The menu still doesn’t appear, however.

    #544976

    Hi!

    Why do you have to relocate the avia.js file in the child theme folder? The site is probably using an old version of the file which is why the mobile menu is not working correctly.

    function change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );

    Best regards,
    Ismael

    #545060

    The avia.js was in the child-theme folder because I want to display the post title and meta above the feature image. For that purpose I use this code:

    jQuery('article.post').each(function(){
    
    jQuery(this).find('.entry-content-header').after(jQuery(this).find('.big-preview').detach());
    
    })

    I am using the avia.js file from the 3.4.4 version now and simply added the code to the bottom. Everything is working as it should now.

    Thank you very much!

    Best,

    Julian

    #545700

    Hi,

    Great, glad you got it working again. Please let us know if you should need any more help on the topic.

    Cheers!
    Rikard

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