Shopify themes, liquid, logos, and UX
Hello some text is centered some is left aligned in image with text-text. How do I center it
Solved! Go to the solution
This is an accepted solution.
Hi @needelp
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.
@media only screen and (max-width: 749px){
.image-with-text__text.rte.body {
text-align: center;
}
h2.image-with-text__heading.inline-richtext.h2 {
align-self: center
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
hello @needelp
can you send me the Website URL
thanks
Hi @needelp,
<style>
@media only screen and (max-width: 749px) {
h2.image-with-text__heading.inline-richtext {
text-align: center !important;
width: 100% !important;
}
.image-with-text__text.rte.body {
text-align: center !important;
}
}
</style>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Thanks where do I put it?
Hi @needelp, You can try:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert that code above </head> tag
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Hi @needelp ,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
@media only screen and (max-width: 749px) {
h2.image-with-text__heading.inline-richtext {
text-align: center !important;
width: 100% !important;
}
.image-with-text__text.rte.body {
text-align: center !important;
}
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
This is an accepted solution.
Hi @needelp
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.
@media only screen and (max-width: 749px){
.image-with-text__text.rte.body {
text-align: center;
}
h2.image-with-text__heading.inline-richtext.h2 {
align-self: center
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. 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