Answer the question
In order to leave comments, you need to log in
Why is the CSS property being erased?
I'm new to css, so please explain without tomatoes). I am changing some styles in a Wordpress template. I noticed that some styles that I add for example ( font-weight: 600;) to the header are deleted after clearing the theme cache... I change or add properties directly in the theme files.
Or tell me how to do it right?
Answer the question
In order to leave comments, you need to log in
The browser has a developer tool - study it. If styles are overwritten, you will see that they are crossed out, and you will also see which style takes precedence and overwrites your style.
Are you sure they are erased? maybe they are re-enacted with other styles? try adding
font-weight:600 !important;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question