Please provide a link to a page on your site where we can see this. Thanks. Note: Your link will be public and we will not later remove it.
You need to look at how they’re represented in the inspector. For example, to dissappear “.aboutCover”, it would be
section.wp-block-uagb-section.uagb-section__wrap.uagb-section__background-image.uagb-block-4fa9dbdc.desktop.aboutCover {
display:none;
}
Thanks Steven,
Why is it necessary to call all of the classes? In the past I only needed to use just one of them. For example, just calling “.desktop” works. Why can’t I call just “.aboutCover?”
Grant
It has to do with a CSS property called Specificity, which is basically Order of Priority.
No space between classes has a higher Specificity than those that do because it’s treated as a separate class–a Super Class if you will.
section.wp-block-uagb-section.uagb-section__wrap.uagb-section__background-image.uagb-block-4fa9dbdc.desktop.aboutCover
Has a higher priority because the classes have been chained together (no space between them). So the “.destop.aboutCover” is not (in this case) a stand-alone class. Because it is chained to 1 Element (section) and 4 Classes you have to include them all when wanting to make a change.
If you had a space before .desktop:
section.wp-block-uagb-section.uagb-section__wrap.uagb-section__background-image.uagb-block-4fa9dbdc .desktop.aboutCover
then you could do something with it.
Here is a more thorough explanation:
https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity