WordPress.org

Forums

SimplyBlack
[resolved] small screen menu display (6 posts)

  1. almcr
    Member
    Posted 2 years ago #

    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

  2. Guido
    Member
    Theme Author

    Posted 2 years ago #

    Hi Al,

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

    Guido

  3. almcr
    Member
    Posted 2 years ago #

    http://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

  4. almcr
    Member
    Posted 2 years ago #

    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

  5. Guido
    Member
    Theme Author

    Posted 2 years ago #

    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:
    http://codex.wordpress.org/Function_Reference/bloginfo

    Guido

  6. almcr
    Member
    Posted 2 years ago #

    thanks Guido,

    nice looking theme

    Al

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.