Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #1007295

    Hello,

    Thank you for this great theme and your efforts for the support..

    I am using Enfold child theme. Recently I decided to try the burger menu but once I activated it, I realized that the burger menu is not working properly.

    the problem is : I can not see the X close button. So I can not hide the burger menu.

    When I switch to Enfold Main Theme everything works perfect..
    So I am guessing that the problem is with the child theme…

    Can you please help me figuring out my problem?

    Kind Regards,
    Enis

    #1007489

    Hello anyone?

    • This reply was modified 6 years, 3 months ago by indurango.
    #1007679

    Hi,

    Can you please update the header.php file inside the child theme? :)

    Best regards,
    Basilis

    #1007690

    Hello Basilis,

    Do you mean update the header.php with the original header.php in Enfold main theme folder?

    #1007840

    Hello,

    My problems still continue :

    1- Burger menu X Close button do not appear. So I can not close the menu. As you suggested, I updated the header.php inside child theme with the header.php from main theme folder but burger menu still not working.

    2- I tried to add the text ‘Menu’ to burger menu but it does not work.
    ( I tried this solution )

    3- When I change the burger menu icon color from Enfold Theme Options, the color only changes when I scroll down the page and when sticky header becoems active.. Otherwise it does not reflect the customized icon color.

    4- Is it possible to place full screen slider inside a color section? Or any solution to make color section bg images to slide?

    Thank you.

    #1008101

    Hi,

    Yes, That is what I mean.
    If you update the folder – let us know after how it would look.

    Best regards,
    Basilis

    #1008104

    Hello Basilis,

    I think you did not read my messages carefully.
    In my reply, i wrote that i already did that but nothing changed.

    This is the 3rd day and i still do not have any solution.

    #1008559

    Hi,

    You wrote:

    > My problems still continue :

    Nothing if u have updated or not, so yes I do read but need to be more clear.
    We have worked on an update on that version that fixes most of those issues, we appreciate the patience as we have a developer preview – we will launch it.

    Best regards,
    Basilis

    #1008990

    Hi Basilis,

    Sorry for my reaction.
    I updated my headerphp file with the one from the main Enfold theme folder. But it did not work.. I had written that I updated the header.php but after editing my message I think I deleted that without realizing. Sorry for that.

    But I did not understand your last message. What are you working on updating?
    Should I have to wait or do I have to do anything else?

    Thanks for your patience.
    E.

    #1009503

    Hi indurango,

    If you have no customizations in your header.php file you can simply remove it from your child theme. You have the avia.js file in your child theme too, did you update it with a fresh copy?

    Best regards,
    Victoria

    #1009599

    Hi Victoria,

    Yes the avia.js updated with the lates Enfold version last week.

    header.php was added after Basilis suggested to update it from the main enfold theme to child theme.
    Now, I deleted header.php but nothing changed.

    Below problems still continue :

    1- Burger menu X Close button do not appear. So I can not close the menu.
    2- I tried to add the text ‘Menu’ to burger menu but it does not work.
    3- When I change the burger menu icon color from Enfold Theme Options, the color only changes when I scroll down the page and when sticky header becoems active.. Otherwise it does not reflect the customized icon color.
    4- Is it possible to place full screen slider inside a color section? Or any solution to make color section bg images to slide?

    #1010154

    Hi indurango,

    No, full-screen slider cannot go in the color section. You might want to use Layer Slider for that.

    I am pretty sure some JavaScript is not working or is missing, but there are no errors in console. If you have no changes now in the avia.js you can remove it too.

    Best regards,
    Victoria

    #1010182

    Hello Victoria,

    I have customization in avia.js so I will keep it.
    But about the burger menu, what is the solution you are suggesting?

    Regards,
    Enis

    #1010329

    Hi Enis,

    It can be that the burger is not working because of the customization. Can you comment it out for now and see if it solves the issue? And then the customization can be adjusted to work.

    Best regards,
    Victoria

    #1018479

    Hello Victoria,

    I found out that the problem causing the burger menu not to close is the functions.php in my child theme folder.
    When I remove it burger menu works fine.

    But to be honest I do not know what is the customization in the fucntions.php.
    I am guessing that it was something you helped me with WPML translations.. (maybe)

    Is it possible to look at the code and tell me what this customization does?

    function add_my_script() {
      wp_enqueue_script( 'my-custom-script', get_stylesheet_directory_uri() . '/js/avia.js', array('jquery'), '1.0.1', true );
    }
    add_action( 'wp_enqueue_scripts', 'add_my_script', 10);
    
    function icl_post_languages(){
      $languages = icl_get_languages('skip_missing=1');
      if(1 < count($languages)){
        echo __('This post is also available in: ');
        foreach($languages as $l){
          if(!$l['active']) $langs[] = '<a href="'.$l['url'].'">'.$l['translated_name'].'</a>';
        }
        echo join(', ', $langs);
      }
    }
    
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }
    
    add_theme_support('avia_template_builder_custom_css');

    Kind regards,
    Enis

    #1018599

    Hi,

    Thanks for the update, it looks to be this part:

    function add_my_script() {
      wp_enqueue_script( 'my-custom-script', get_stylesheet_directory_uri() . '/js/avia.js', array('jquery'), '1.0.1', true );
    }
    add_action( 'wp_enqueue_scripts', 'add_my_script', 10);

    What happens if you only remove that bit?

    Best regards,
    Rikard

    #1018626

    Hello Rikard,

    Yes I removed that and the burger menu works perfectly.
    Can you tell me what that piece of code in functions.php is about?

    I do not want to mess up things that I do not realize at the moment..

    Thanks,

    #1018803

    Hi,

    That code is enqueuing the avia.js script file, but that shouldn’t be necessary since that is done automatically by the theme. If everything is working as it should on your site after removing that, then please keep it out of the functions.php file :-)

    Best regards,
    Rikard

    #1018908

    Hi Rikard,

    Thank you for the answer..
    You can close the ticket..

    Regards,
    Enis

    #1019257

    Hi,

    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

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Enfold Burger Menu Not working properly’ is closed to new replies.