• Resolved almcr

    (@almcr)


    set up a child theme of simplyblack, tried reducing screen size, and the menu disappeared when I had a dropdown menu on one of the links.

    seems to work OK when testing using parent theme, but not the child.

    Al

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Guido

    (@guido07111975)

    Hi Al,

    Do you have example URL or screenshot? Currently I don’t know what causes this.

    Guido

    Thread Starter almcr

    (@almcr)

    https://www.thesunflowerbaker.ca/wp/

    uses child theme simplyblack-child, with minimal style.css

    I am using Chrome as a browser in XP

    when I reduce the size of the screen, the main menu disappears, when I expand the screen again, it comes back, never does reduce to the mobile menu format

    Al

    Thread Starter almcr

    (@almcr)

    found out what is causing problem when using child theme. call to nav.js in child theme generates call to child theme js folder, not the parent one. there is no js folder in the child theme. so either change the child theme to call it from its own js folder or change the call in functions.php, not sure if that is possible.

    Al

    Theme Author Guido

    (@guido07111975)

    Hi Al,

    Thanks for your help, I checked it myself and I understand what you mean.

    I have changed this line in functions file:

    wp_enqueue_script( 'nav', get_stylesheet_directory_uri() . '/js/nav.js', array( 'jquery' ) );

    Into this:

    wp_enqueue_script( 'nav', get_template_directory_uri() . '/js/nav.js', array( 'jquery' ) );

    Seems to work in both parent and child now. Info:
    https://codex.www.ads-software.com/Function_Reference/bloginfo

    Guido

    Thread Starter almcr

    (@almcr)

    thanks Guido,

    nice looking theme

    Al

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘small screen menu display’ is closed to new replies.