What's your biggest current challenge? Have your say in Community Polls along the right column.

How to place image and text + button beside each other like desktop only for this section

How to place image and text + button beside each other like desktop only for this section

nicolewx
Tourist
7 0 5

Hi! How do I retain this position (text next to image) similar to desktop for mobile version, and reduce the font size for mobile?

nicolewx_0-1711463897480.png

nicolewx_2-1711463994849.png

 

nicolewx_1-1711463907099.png

 

Replies 2 (2)

theycallmemakka
Shopify Partner
1747 425 443

Hi @nicolewx ,

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </body>

<style>
@media only screen and (max-width: 600px) {
#shopify-section-template--17647482142973__image_with_text_czkqze .grid--1-col .grid__item {
    width: 50%;
    max-width: 50%;
}

#shopify-section-template--17647482142973__image_with_text_czkqze .image-with-text__media img {
    object-fit: contain;
}

#shopify-section-template--17647482142973__image_with_text_czkqze a.button.button--primary {
    font-size: 1.2rem;
    padding: 0.5rem;
    
}

#shopify-section-template--17647482142973__image_with_text_czkqze .image-with-text__content{
    padding: 0.5rem;
    font-size: 1.2rem;
}
}
</style>

Result:

theycallmemakka_0-1711465893706.png

 

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

Made4uo-Ribe
Shopify Partner
9159 2184 2700

Hi @nicolewx 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width: 749px){
.section-template--17647482142973__image_with_text_czkqze-padding .grid--1-col .grid__item {
    max-width: 50%;
}
div#ImageWithText--template--17647482142973__image_with_text_czkqze .subtitle {
        font-size: 1.2rem;
    }
div#ImageWithText--template--17647482142973__image_with_text_czkqze {
    padding: 10px;
}

.image-with-text__media.image-with-text__media--adapt.global-media-settings.background-transparent.media img {
    object-fit: contain;
}
.section-template--17647482142973__image_with_text_czkqze-padding a.button.button--primary {
    padding: 0px;
    
}
.section-template--17647482142973__image_with_text_czkqze-padding .image-with-text .grid {
    flex-direction: row-reverse;
}
}

 

And save. 

Result:

Made4uoRibe_0-1711476718050.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.