Override !important
-
Hi
I am trying to override@media handheld, screen and (max-width: 600px) {
/*———————————————————-
Starting at this size, the captions get in the way of the
thumbnail images, so we don’t show them.
———————————————————-*/
.mg-image-tiles .mg-thumbs .caption.above,
.mg-image-tiles .mg-thumbs .caption.below,
.mg-image-tiles .mg-thumbs .caption.bottom {
display: none !important;
}to show the captions. If I change display:none !important to display:block in dev console it how I want it But when i add the css to my theme the css in image-tiles.css always overrides my custom css. Even manually adding it just before </head> doesnt work.
If i edit the original ccs file it works but dont want to do that as it will most likely be overwritten next update.
Any way around it?
The topic ‘Override !important’ is closed to new replies.