How to reproduce this bar behind the text

How to reproduce this bar behind the text

rafaelbata
Tourist
8 0 4

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_0-1729647597176.png

 

Replies 5 (5)

suyash1
Shopify Partner
10991 1360 1738

@rafaelbata - can you please share the page where you got this?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
rafaelbata
Tourist
8 0 4

This is the reference webpage, the bar is located within the home page:

 

https://vikitakids.com/

Dan-From-Ryviu
Shopify Partner
11742 2303 2487

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.

PageFly-Richard
Shopify Partner
5011 1120 1803

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.

rafaelbata
Tourist
8 0 4

Thanks everyone. I managed to reproduce the way I needed.

 

rafaelbata_0-1729772696163.png