Answer the question
In order to leave comments, you need to log in
Media screen query not working in wordpress theme styles, how to make it work?
Good afternoon.
I am writing a site on WP, without additional plugins and constructors, the theme is stock, I write html in the stock code editor, I write css in additional theme styles.
I wanted to start implementing adaptive layout in these additional styles, initially I did it for the desktop, marked out the range for it, everything works. Registered for mobile phones:
@media screen and (max-width: 768px) {
}
Answer the question
In order to leave comments, you need to log in
Well, let's exclude a few more common problems
1. wp_head()
Is there any topic at all?
2. Cash? ctrl+f5?
3. Are you sure you are watching at a resolution less than 768?
If it doesn't help, then use the good old-fashioned debugging: disable all plugins, enable the default theme. Is it working fine now? Then turn on the plugins one by one. If you haven’t found a problem, then search and check everything that is on hooks in the theme init
and after_setup_theme
compare with the default theme
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question