Hi! I’m very new to Shopify. I’d like to add a line on each side of my collection title on the home page of my website. I’ve attached an example. Can anyone help me with this?
Would you mind to share your Store URL website? with password if its unpublish. Thanks!
Yes! the URL is shophelloindigo.com and the password is deirah
Thanks for the info, try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
h2.title.inline-richtext.h1.scroll-trigger.animate--slide-in:before,
h2.title.inline-richtext.h1.scroll-trigger.animate--slide-in:after {
content: '';
width: 60px;
height: 2px;
background-color: pink;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
h2.title.inline-richtext.h1.scroll-trigger.animate--slide-in:before {
left: 20%;
}
h2.title.inline-richtext.h1.scroll-trigger.animate--slide-in:after {
right: 20%;
}
@media only screen and (max-width: 750px){
h2.title.inline-richtext.h1.scroll-trigger.animate--slide-in:before {
left: 5%;
}
h2.title.inline-richtext.h1.scroll-trigger.animate--slide-in:after {
right: 5%;
}
}
- And Save.
- Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
I check your website, I think you change your password. Would you mind to share? Thanks!
Yes, it’s Alston



