Tagged: priority, specificity score, target elements
- This topic has 3 replies, 2 voices, and was last updated 7 years, 7 months ago by
Sebastian.
Author | Posts |
---|---|
juliusrainey
August 30, 2017 at 8:53 pm
|
Heads up! this post was created when Microthemer was at version 5. The current version is 7. Some references to the interface may be out of date. As I am loving the plugin, I am running into an issue. On my website, I would like to make adjustment to the text that’s in the hero image area or the header. Whenever I inspect the element, I get .subheader as the class to style; however, whenever I make edits to the font-size nothing happens but when I make changes to the font-type etc. I see the changes immediately. My thoughts is that the .subheader class should be .span.subheader. Well this is what I see in the my Google inspector tool. Any idea what’s going on? |
Sebastian
August 31, 2017 at 9:51 am
|
Hey Julius, Unfortunately the image didn’t come through. But as you’ve given me access to your site to fix your plugin conflict issue on the home page, I can see what you mean. Your theme was applying a font-size of 15px using the !important declaration and the following CSS selector:
That selector has a higher specificity score (121) than your .subheader selector, which has a score of (10). The following info about inheritance and specificity may be useful to you if this is a new topic: https://themeover.com/responsive-media-queries/#inheritance To resolve the issue, I updated your “SubheaderMobile” selector to match the selector used by your theme. You can now adjust the font-size. Cheers, |
juliusrainey
August 31, 2017 at 4:21 pm
|
Wow! Okay so a few questions: -the font size works but the line height doesn’t. Why is that? I’m still learning. |
Sebastian
September 1, 2017 at 1:01 pm
|
Hey,
I’ll update you on the homepage issue soon. Cheers, |