Shopify themes, liquid, logos, and UX
Hi, hoping for a little bit of help. I'm racking my brain over how to center collection headers and descpriptions in my debut theme. The tutorials I have followed so far haven't been much help, so here we are!
My website currently looks like first picture, and the fact nothing is centered to the products is slowly making me go insane.
If someone could please help me so I can align the collection header and collection description to the center that would be a massive help!
Solved! Go to the solution
This is an accepted solution.
hello @Skybound
please Go to Online Store->Theme->Edit code then go to assets/theme.css ->paste below code at the bottom of the file.
@media only screen and (min-width: 768px){
.template-collection .grid.medium-up--grid--table .grid__item:nth-child(1){
width: 100%;
margin: 0 auto;
}
.template-collection .grid.medium-up--grid--table .grid__item:nth-child(1) .section-header__title , .template-collection .grid.medium-up--grid--table .grid__item:nth-child(1) .section-header__subtext {
text-align: center;
}
.template-collection .grid.medium-up--grid--table .grid__item:nth-child(1) img {
width: 50%;
}
.template-collection .grid.medium-up--grid--table .grid__item:nth-child(2){
display: none !important;
}
}
This is an accepted solution.
hello @Skybound
please Go to Online Store->Theme->Edit code then go to assets/theme.css ->paste below code at the bottom of the file.
@media only screen and (min-width: 768px){
.template-collection .grid.medium-up--grid--table .grid__item:nth-child(1){
width: 100%;
margin: 0 auto;
}
.template-collection .grid.medium-up--grid--table .grid__item:nth-child(1) .section-header__title , .template-collection .grid.medium-up--grid--table .grid__item:nth-child(1) .section-header__subtext {
text-align: center;
}
.template-collection .grid.medium-up--grid--table .grid__item:nth-child(1) img {
width: 50%;
}
.template-collection .grid.medium-up--grid--table .grid__item:nth-child(2){
display: none !important;
}
}
User | RANK |
---|---|
68 | |
65 | |
63 | |
53 | |
47 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023