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