Center image

Solved

Center image

GadVenin
Excursionist
35 2 11

Hello I would like to center this image on desktop, exactly how it is on mobile (cf images)

because right now it is centered left. Link to website : https://sonvenin.com/ Screenshot 2025-04-02 104941.pngScreenshot 2025-04-02 104616.png

Accepted Solution (1)
DaisyVo
Shopify Partner
4387 486 573

This is an accepted solution.

Hi @GadVenin 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

 

.image-with-text__text-item.grid__item {
    display: none !important;
}

.image-with-text__grid.grid.grid--gapless.grid--1-col.grid--2-col-tablet {
    display: flex !important;
    justify-content: center !important;
}

.image-with-text__media-item.image-with-text__media-item--medium.image-with-text__media-item--middle.grid__item {
    max-width: 50%  !important;
}

 

Result 

DaisyVo_0-1743587041116.png

 

Best,

Daisy

 

 

Resulte 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 14 (14)

DaisyVo
Shopify Partner
4387 486 573

Hi @GadVenin , i dont see that image

DaisyVo_0-1743584856684.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
GadVenin
Excursionist
35 2 11

Screenshot 2025-04-02 104941.pngScreenshot 2025-04-02 104616.pngCan you see here  ?

 

GadVenin
Excursionist
35 2 11
DaisyVo
Shopify Partner
4387 486 573

This is an accepted solution.

Hi @GadVenin 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

 

.image-with-text__text-item.grid__item {
    display: none !important;
}

.image-with-text__grid.grid.grid--gapless.grid--1-col.grid--2-col-tablet {
    display: flex !important;
    justify-content: center !important;
}

.image-with-text__media-item.image-with-text__media-item--medium.image-with-text__media-item--middle.grid__item {
    max-width: 50%  !important;
}

 

Result 

DaisyVo_0-1743587041116.png

 

Best,

Daisy

 

 

Resulte 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

Manoj_j
Shopify Partner
92 2 6

Hi @GadVenin ,

The image you shared, is not shown on your entire store can you please share specific url where image is present.

thanks 

Manoj

- Need a Shopify Specialist ?
- Email Me | For quick response message me
- Custom Design | Advanced Coding | Store Modifications
- Digital Marketing | SEO Expert
GadVenin
Excursionist
35 2 11

Screenshot 2025-04-02 104941.pngScreenshot 2025-04-02 104616.pngCAN YOU SEE HERE ? 🙂

Manoj_j
Shopify Partner
92 2 6

Hi @GadVenin , 

I saw your images but , these are not present on your store , if you share specific url for this( image ) problem then we can do something.

- Need a Shopify Specialist ?
- Email Me | For quick response message me
- Custom Design | Advanced Coding | Store Modifications
- Digital Marketing | SEO Expert
GadVenin
Excursionist
35 2 11
Manoj_j
Shopify Partner
92 2 6

thanks for url

 

- Need a Shopify Specialist ?
- Email Me | For quick response message me
- Custom Design | Advanced Coding | Store Modifications
- Digital Marketing | SEO Expert
GadVenin
Excursionist
35 2 11

Your welcome, Is changing CSS possible only for this page ? To avoid changing all the others parts of the website ?

Manoj_j
Shopify Partner
92 2 6

it will change only this part and don't effect other parts.

- Need a Shopify Specialist ?
- Email Me | For quick response message me
- Custom Design | Advanced Coding | Store Modifications
- Digital Marketing | SEO Expert
Manoj_j
Shopify Partner
92 2 6

@GadVenin ,

Go to Shopify admin -> online Store -> themes.

click Actions -> Edit code

open the base.css in Assets folder add this css at the bottom.

.image-with-text__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-with-text__media-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.image-with-text__media img {
    margin: auto;
    display: block;
    max-width: 100%;
    height: auto;
}

 save , refresh and check the result:

Screenshot (11).png

 

If I was able to assist you, please don’t forget to like and mark it as the solution.
If you need further assistance, feel free to reach out to me on WhatsApp. I'm always happy to help!

 

Thanks

Manoj

- Need a Shopify Specialist ?
- Email Me | For quick response message me
- Custom Design | Advanced Coding | Store Modifications
- Digital Marketing | SEO Expert
Manoj_j
Shopify Partner
92 2 6

Hi @GadVenin ,

Go to Shopify admin -> Online Store-> themes

click actions -> edit code

open base.css file in assets folder and add the code below in the end

.image-with-text__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


.image-with-text__media-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}


.image-with-text__media img {
    margin: auto;
    display: block;
    max-width: 100%;
    height: auto;
}

 save and refresh.

result:

Screenshot (11).png

 

If I was able to assist you, please don’t forget to like and mark it as the solution.
If you need further assistance, feel free to reach out to me on WhatsApp. I'm always happy to help! 

 

thanks

Manoj

- Need a Shopify Specialist ?
- Email Me | For quick response message me
- Custom Design | Advanced Coding | Store Modifications
- Digital Marketing | SEO Expert

ZestardTech
Shopify Partner
6139 1097 1473

Hello @GadVenin,

Here are the steps to apply the necessary changes in your Shopify store:

  1. In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
  2. Locate Asset > base.css and paste the following code at the bottom of the file:
.image-with-text__text-item.grid__item {
    display: none !important;
}
.image-with-text__media.image-with-text__media--adapt.gradient.color-background-1.global-media-settings.media img {
    height: unset !important;
    width: 70% !important;
    text-align: center !important;
    display: flex;
    justify-self: anchor-center !important;
}
@media screen and (max-width:768px){
.image-with-text__media.image-with-text__media--adapt.gradient.color-background-1.global-media-settings.media img {
        width: 100% !important;
}
}

ZestardTech_0-1743587392189.png


Let me know if you need further assistance!

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing