Shopify themes, liquid, logos, and UX
Anyone know how to align the content to the left side?
password: bautso
See reference:
Solved! Go to the solution
This is an accepted solution.
Hi @ReviveShop
Check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
.product__info-wrapper .product__info-container * {
text-align: left !important;
}
And Save.
result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
Hi @ReviveShop
Check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
.product__info-wrapper .product__info-container * {
text-align: left !important;
}
And Save.
result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Perfekt! Thank you!
Is it possible to align left only on desktop, and centered on mobile?
Yes, sure. Same Instruction but replace on this code below. Thanks!
@media only screen and (min-width: 750px){
.product__info-wrapper .product__info-container * {
text-align: left !important;
}
}
@media only screen and (max-width: 749px){
.product__info-wrapper .product__info-container * {
text-align: center !important;
}
fieldset.js.product-form__input {
margin: auto;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
when I replace the code both are centered now again
Oops, I made a mistake in the code. I've already fixed it. Please go ahead and copy and paste it again.
Perfect, thanks!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024