We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to change the width a specific section

Solved

How to change the width a specific section

memahmudhassan
Excursionist
37 0 9

How to change the slideshow width? I don't it that long. I want it in the middle with empty/specific color on right and left side.

 

Website:

https://prettycious.com/

 

Screenshot 2024-05-09 010617.png

MAHAMUD H.
Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10211 2427 3080

This is an accepted solution.

Hi @memahmudhassan 

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 (min-width: 1000px){
slideshow-carousel#carousel-template--22115827351868__slideshow {
    max-width: 90%;
    margin: auto;
}
section#shopify-section-template--22115827351868__slideshow {
    background: bisque;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1715203858383.png

Note: You can change the color, and also i didnt include in the mobile view. 

 

 

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.

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
10211 2427 3080

This is an accepted solution.

Hi @memahmudhassan 

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 (min-width: 1000px){
slideshow-carousel#carousel-template--22115827351868__slideshow {
    max-width: 90%;
    margin: auto;
}
section#shopify-section-template--22115827351868__slideshow {
    background: bisque;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1715203858383.png

Note: You can change the color, and also i didnt include in the mobile view. 

 

 

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.
memahmudhassan
Excursionist
37 0 9

Thanks again! but how can i change the background color through code? or I have to change through the color name only?

MAHAMUD H.