Shopify themes, liquid, logos, and UX
How to add this style of bar behind the text? What CSS parameters should be used?
See image for reference of bar that sits behind the text.
@rafaelbata - can you please share the page where you got this?
Hi @rafaelbata
Please give me your page link containing the text you want to display like this so we can check and give you the code.
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi @rafaelbata
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
.your-title {
display: inline-block;
position: relative;
z-index: 9;
}
.your-title:after {
content: "";
height: 8px;
background:#f0449a;
opacity: .7;
position: absolute;
bottom: 4px;
opacity: .3;
left: 0;
width: 100%;
z-index: -1;
}
</style>
The code above is assume your title has the class: .your-title, you can change the class to match your structure
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Thanks everyone. I managed to reproduce the way I needed.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025