Hi guys!
I have tried everything but can’t I get the collection description in the center of the page?
Page: https://kingdompetshop.com/collections/dog-collars-leashes
Theme: Refresh
Pw: abcd
A user is trying to center a collection description on their Shopify store page but hasn’t been successful despite multiple attempts.
Solution provided:
component-collection-hero.css.collection-hero__title+.collection-hero__descriptionmargin-left: auto;
margin-right: auto;
Outcome:
The original poster confirmed the solution worked and thanked the helper. The issue appears to be resolved through this CSS modification that centers the element by setting automatic left and right margins.
Hi guys!
I have tried everything but can’t I get the collection description in the center of the page?
Page: https://kingdompetshop.com/collections/dog-collars-leashes
Theme: Refresh
Pw: abcd
Find ‘component-collection-hero.css’,
search ‘.collection-hero__title+.collection-hero__description’,
add
margin-left:auto;margin-right:auto;
Final code
.collection-hero__title+.collection-hero__description {
margin-top: 1.5rem;
margin-bottom: 1.5rem;
font-size: 1.6rem;
line-height: calc(1 + .5 / var(--font-body-scale));
/*add*/
margin-left: auto;
margin-right: auto;
}
Hi @wo Thanks a lot!