Thread Starter
fypp
(@fypp)
I see what you are saying. I am using the css editor in the colorway theme. I took out all of the !important from there and added the code you gave me, also taking out the !important. It is still not working properly. help!
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Your theme does not behave as it should. It is entering a lot of stuff that should be in the <head> section but are in the <body>. Your CSS is still in the <body>.
That is my conclusion as to why your CSS Media Queries are not working.
I’d usually recommend reinstalling the theme, but it sounds like you made changes to the theme’s files, so I don’t know what to recommend.
Thread Starter
fypp
(@fypp)
Thanks for your honest opinion Andrew and help, I appreciate it.
WPyogi, how do I find the errors to fix them?
The second link above explains some – there isn’t an easy way – you need to use the validator results to look at the generated code from the page you’ve validated – use View Source in your browser to see the code. Then you have to track down where that code is coming from – it looks like those errors are in the header.php file – if you have changed that file, that’s probably why, but some plugins can do that and it’s possible the theme has code errors.
I mentioned this because of what Andrew said about the code being messed up in your header section.
If you’ve changed the header.php file, you could try comparing your file with a new copy (download the theme to your local computer).
And really, you should not modify theme files…but use a Child Theme instead.
Thread Starter
fypp
(@fypp)
Thanks for your detailed reply, WPyogi. I am going to figure out how to fix these errors you pointed out. In the meantime, is there a way to make my green buttons on the top of each page “not” viewable on a mobile device, just until I can figure out what to do with this?
I may just have to reinstall the theme.
See if adding this to your custom CSS will work:
@media (max-width: 800px) {
a.maxbutton-1, .maxbutton-6-container {
display: none !important;
}
}
Thread Starter
fypp
(@fypp)
YOU My friend are a miracle worker! thank you so much!