Re: Align Text to the left on Image with Text Component for mobile view, Dawn Theme

Solved

Align Text to the left on Image with Text Component for mobile view, Dawn Theme

Verterra
Explorer
63 1 9

Hi, does anyone know how to adjust the text alignment for my image with text components on my shop. Currently theres alot of white space on the left, and I want the font to align nicely with the left, so that its directly underneath the left corner of the photos. I also want the font to continue all the way through. to the right edge so it aligns with the right side of the photos too. Thanks!

 

My store URL is: https://verterra.sg/password, password is VerterraTest123

Verterra_0-1720627754835.png

 

Accepted Solutions (2)

Moeed
Shopify Partner
6575 1783 2162

This is an accepted solution.

Hey @Verterra 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__content {
    padding-left: 0 !important;
}
}
</style>

RESULT:

Moeed_0-1720628379077.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

BSS-TekLabs
Shopify Partner
2401 695 828

This is an accepted solution.

- Here is the solution for you @Verterra 
- Please follow these steps:

step.png

- Then find the base.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

@media screen and (max-width: 749px) {
.image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

- Here is the result you will achieve:

BSSTekLabs_0-1720628278733.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 7 (7)

BSSCommerce-TC
Shopify Partner
225 49 51

Hi @Verterra ,

Is this final result you want?

BSSCommerceTC_0-1720628328708.png

 

You can follow these steps

Step 1: Go to Online store > Themes > Edit code and find base.css file

Step 2: Insert below code at the end file and Save them

@media screen and (max-width: 749px) {
    .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__text-item:after, .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__content {
        padding: 10px 0 !important;
    }
}

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

Moeed
Shopify Partner
6575 1783 2162

This is an accepted solution.

Hey @Verterra 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__content {
    padding-left: 0 !important;
}
}
</style>

RESULT:

Moeed_0-1720628379077.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Verterra
Explorer
63 1 9

Thank you! This works too, just that I added padding-right: 0 as per the other solution so it would stretch across the screen. 

Moeed
Shopify Partner
6575 1783 2162

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


BSS-TekLabs
Shopify Partner
2401 695 828

This is an accepted solution.

- Here is the solution for you @Verterra 
- Please follow these steps:

step.png

- Then find the base.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

@media screen and (max-width: 749px) {
.image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

- Here is the result you will achieve:

BSSTekLabs_0-1720628278733.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Verterra
Explorer
63 1 9

Thank you, this worked well for me! 🙂 

BSS-TekLabs
Shopify Partner
2401 695 828

No problem. If you need any help, just message me.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now