AshlynnW Posted November 12 Share Posted November 12 Hi there – I'm trying to figure out a way to add a highlight (a full, highlighter-like highlight) to my blog posts titles ON each blog post page only, similar to the highlight effect available for regular text. Is there a way to do this without it effecting anywhere else? Website it ashlynnwhalley.com, page for example is https://www.ashlynnwhalley.com/blog/finding-peace-in-uncertainty Thank you! Link to comment
SaranyaDesigns Posted November 13 Share Posted November 13 @AshlynnW try this? .blog-item-wrapper .blog-item-title h1.entry-title { background-color: yellow; /* replace with whatever color you want */ } Link to comment
AshlynnW Posted November 13 Author Share Posted November 13 @SaranyaDesigns thank you, this is great! Is there any way to have it only be the width of the text, and not extend past it? Link to comment
SaranyaDesigns Posted November 13 Share Posted November 13 @AshlynnW sure, try adding display:inline; like this: .blog-item-wrapper .blog-item-title h1.entry-title { background-color: yellow; /* replace with whatever color you want */ display: inline; } If that doesn't work, you may need to add !important to override the template styles, like this: .blog-item-wrapper .blog-item-title h1.entry-title { background-color: yellow; /* replace with whatever color you want */ display: inline !important; } Link to comment
Solution SaranyaDesigns Posted November 13 Solution Share Posted November 13 @AshlynnW you may find with this adjustment that you also want to add some left-right padding as well: .blog-item-wrapper .blog-item-title h1.entry-title { background-color: yellow; /* replace with whatever color you want */ display: inline; padding: 0 10px; } Link to comment
AshlynnW Posted November 13 Author Share Posted November 13 @SaranyaDesigns you're my hero, this worked perfectly. Thank you so much! SaranyaDesigns 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment