Site logo

Archived topic

Menu Missing in Responsive Mode

10 replies · Started by Mary Pearson on May 7, 2016

Viewing posts 1–11 of 11

Hi Tom,

I was showing a friend my newest website https://caribecampo.com yesterday on my iPhone4 and realized that I can't view the Menu. Not sure if it's missing or hidden, but either way it's not there and I was stuck trying to show her the pages I wanted to.

Can you help?
Thanks!

Hi Mary,

You've added the entire parent CSS file contents into your child theme CSS file.

The child theme CSS file should only have your custom CSS - nothing else.

Once that is fixed your mobile menu should appear :)

Thanks Tom. Hmmm, I remember there was a reason for me doing that. I will have to remove it to find out what it was. ;-)

Thank you so much!!!!

I found the problem. When I remove the style.css from child theme I get on browser page:

Warning: filemtime(): stat failed for /home/campo/public_html/campo-content/themes/generatepress_child/style.css in /home/campo/public_html/campo-content/themes/generatepress/functions.php on line 256

functions.php line 256 is

wp_enqueue_style( 'generate-child', get_stylesheet_uri(), true, filemtime( get_stylesheet_directory() . '/style.css' ), 'all' );

What should I change?

Don't remove it completely - a child theme/theme requires the style.css file.

Just remove the parent CSS from the file, and keep your custom CSS in there/keep it blank.

Hi Tom,

I've done as you suggested but still no menu showing on iPhone. Any other ideas?

I can't tell now as you've added a caching plugin so I can't inspect the individual files.

It may be that your minifying plugin is loading the parent CSS after the child CSS which is the wrong way around.

The child CSS should display after the parent CSS.

Sorry Tom. I've deactivated the caching and all-in-one security plugins.

Oh Tom, you must think I'm an idiot. I was sure that I had deleted all the content in the child style.css but when I checked, sure enough, just as you said, it was there. I'm not sure what I did wrong, but you were absolutely right, as usual. That was the problem. My menu has miraculously reappeared! Hallelujah! Thank you again so much for your patience with an old lady. ;-)

Happy to help :)

This archived topic is closed to new replies.