Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Why is there so much stuff in your Child Theme style.css file?
Thread Starter
TMNR
(@tmnr)
Because I modified allot of stuff. Why do you ask?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
It’s a lot harder to track down what you have done.
Please make it easier for us to identify the styles that aren’t working (at certain widths).
Thread Starter
TMNR
(@tmnr)
Sorry, I’m not very good at expressing what I need.
I cleaned up the code a bit, here’s the main issue:
When window is shrunk and passes 617px mark, something kicks in and changes things. Past 600px mark, it changes again, this time I know it’s the media query in original style.css supported by the same query in my child style.css. What happens between 600 and 617px?
The menu is being set to display: none;, according to firebug this is accomplished by line 560 in the original style.css, but why does it happen – I don’t understand.
Does the original Spun theme behave this way?
Thread Starter
TMNR
(@tmnr)
Apparently.
http://spun-demo.calobeedoodles.com/
Past 617px the menu is converted to a small text menu button.
Then at 600px something happens again.
Thread Starter
TMNR
(@tmnr)
I found a solution.
Not the prettiest one, since I did not want to make changes to main theme, hence the child-theme, but that will do.
In theme folder/js/toggle.js I deleted all the code under:
//Toggle the the main navigation menu for small screens.
That seemed to do the trick. Bot now when (if) I update the theme, I will have to deal with this again.
If you have any other, more clever, suggestions, please do share.