Okay
  Public Ticket #773044
Hamburger menu not working
Closed

Comments

  • Jason started the conversation

    Responsive Hamburger menu stopped working.

  • Jason replied

    I am not sure when it stopped but it definitely worked for a long time. You can test by shrinking the screen size to get responsive menu. It doesn't appear to work on desktop, mobile or tablet. At least it is consistently not working.

  •  295
    Paul replied

    Hi Jason!

    Please try:

    1. Switch back to the parent theme and see if the problem is gone. If so, it is likely that the cause is from the custom code in the child theme.

    You can also try using the below code in the function.php file of the child theme for loading the style.css files of both child theme and parent theme. (Replace the current custom code that does same task with this one.):

    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'parent-responsive', get_template_directory_uri() . '/css/kose-responsive.css' );
        wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'parent-style', 'parent-responsive' ) );
    }
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 99 );

    2. Clear all the web and browser cache and test it again.

    See if this helps.

    But if the problem still persists, please send me the following:

    1. FTP info of your site (FTP address, username, password)

    2. Site URL + login account

    Then I will try to debug the code on your end.

    Important: Make sure that you mark your reply as "Private Reply" when sending me the credentials.

    Regards,
    Paul