Hi All,
Please can someone help me.
I would like to add a line break to the title of a featured collection on my homepage (see screenshot below).
Thanks in advance!
A user seeks help adding a line break to a featured collection title on their homepage using the Venture theme. They want the title to match the formatting of other collection titles but only on the homepage, not on the actual collection page.
Solutions Provided:
Two experts offered CSS-based solutions:
theme.scss.liquid file (located in Assets folder).featured-card__title class with properties like max-width or width set to specific values (160px or 75%)margin: 0 auto for centeringOutcome:
The original poster confirmed the solutions worked and thanked both contributors. The issue appears resolved through CSS modifications rather than inserting HTML break tags directly into the collection title.
Hi All,
Please can someone help me.
I would like to add a line break to the title of a featured collection on my homepage (see screenshot below).
Thanks in advance!
Hi @guyv
In this case I don’t know why you want to add break line in collection header.
But if you want to add bread line you can try to add this html tag into your collection title
Thanks for your reply.
The reason I want the break line is so that it looks the same as the other collection titles.
I don’t want to add a break line on the actual collection page as I only want this break line to display in the collection title on the homepage.
Can you think of any other solution?
yes, please try this code
.featured-card__title {
max-width: 160px;
margin: 0px auto;
}
Hi @guyv
Try to add this code at the bottom the editor > assets > theme.scss.liquid file
.template-index .featured-card__header p.h1.featured-card__title {
width: 75%;
margin: 0 auto;
}
Try it and let me know
Thanks for your help!
You are welcome
its my pleasure to help us