Shopify themes, liquid, logos, and UX
Hello, the text on the image slider was right aligned before, But I realised this morning that the text is too long on the hero banner. I want something like this red text alignment, on the blue one. it is shrine theme.
Solved! Go to the solution
This is an accepted solution.
Hey @Legalafrik
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.slideshow__text-wrapper.banner__content .banner__text {
max-width: 500px !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
This is an accepted solution.
Hello @Legalafrik ,
I understand you are looking to display the banner text similar to the https://prnt.sc/th6W42dCsESg
Please add the below-mentioned CSS code at the bottom of the theme.liquid file before </body> tag and save.
<style>
.banner__text {
width: 60% !important;
direction: ltr;
text-align: right;
}
</style>
[Please feel free to adjust the width, direction, and text-alignment as per your requirements.]
The output will be like this -:
I hope the code helps you.
Please share if you have any queries.
Thank you.
Hey @Legalafrik,
Can you share the link to your store please? Thanks
This is an accepted solution.
Hey @Legalafrik
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.slideshow__text-wrapper.banner__content .banner__text {
max-width: 500px !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
This is an accepted solution.
Hello @Legalafrik ,
I understand you are looking to display the banner text similar to the https://prnt.sc/th6W42dCsESg
Please add the below-mentioned CSS code at the bottom of the theme.liquid file before </body> tag and save.
<style>
.banner__text {
width: 60% !important;
direction: ltr;
text-align: right;
}
</style>
[Please feel free to adjust the width, direction, and text-alignment as per your requirements.]
The output will be like this -:
I hope the code helps you.
Please share if you have any queries.
Thank you.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025