# How do I decrease the size of the slideshow?

**URL:** <https://community.shopify.com/t/how-do-i-decrease-the-size-of-the-slideshow/33277>\
**Category:** Technical Q&A\
**Created:** [January 25, 2021, 7:16pm UTC](https://community.shopify.com/t/how-do-i-decrease-the-size-of-the-slideshow/33277 "2021-01-25T19:16:12Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

Reducing the desktop slideshow height on a Shopify site is the main issue. The store owner says the theme editor options are not enough and wants a code-based solution.

Key points:
- A first suggestion was to change the slideshow layout in the theme editor from full-width to default, which would reduce the visible height.
- The store owner replied that this did not achieve the desired result.
- A later reply provided a direct CSS workaround in `Assets > theme.min.css`.

Recommended code-based fix:
- Add a desktop-only media query targeting `.home-slideshow-sections`.
- Use `transform: scale(0.8)` to visually shrink the slideshow.
- Adjust `margin-top` and `margin-bottom` with negative or positive pixel values to correct spacing.

Notes:
- The shared CSS affects only screens wider than 749px, so mobile stays unchanged.
- The responder also noted this is the easiest workaround, not the ideal long-term solution.
- Because only one image is being used, a responsive banner section was suggested as a possible better alternative.

Status: partially resolved with a practical CSS fix, but no final confirmation was posted.

<div class="post-metadata">

**Author:** ![Brianmonteiro54](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@Brianmonteiro54](https://community.shopify.com/u/Brianmonteiro54)\
**Post date:** [January 25, 2021, 7:16pm UTC](https://community.shopify.com/t/how-do-i-decrease-the-size-of-the-slideshow/33277/1 "2021-01-25T19:16:12Z")

</div>

my site is [https://atacadaodosobjetos.com/](https://atacadaodosobjetos.com/) the site password is brian

the slide size for pc is too big and i would like to decrease the slide size

the slide code is this:

> **Show More**
>
> {% if section.blocks.size \> 0 %}
> 
> {% assign- autoplay = section.settings.autoplay -%}  
> {% assign- autoplaySpeed = section.settings.slideshow\_speed -%}  
> {% assign- fade = section.settings.slideshow\_transition -%}  
> {% assign- dots = section.settings.dots -%}
> 
> {% endif %}
> 
> {% schema %}  
> {  
> “name”: “Slideshow”,  
> “class”: “home-slideshow-sections”,  
> “max\_blocks”: 10,  
> “settings”: [  
> {  
> “type”: “select”,  
> “id”: “layout”,  
> “label”: “Slideshow Layout:”,  
> “options”: [  
> {  
> “value”: “default”,  
> “label”: “Default”  
> },  
> {  
> “value”: “padd\_60”,  
> “label”: “Boxed”  
> },  
> {  
> “value”: “full”,  
> “label”: “Full Width”  
> }  
> ],  
> “default”: “full”  
> },  
> {  
> “type”: “header”,  
> “content”: “Margin Bottom:”  
> },  
> {  
> “type”: “range”,  
> “id”: “margin\_bottom\_mb”,  
> “label”: “Mobile”,  
> “min”: 0,  
> “max”: 100,  
> “step”: 1,  
> “default”: 20  
> },  
> {  
> “type”: “range”,  
> “id”: “margin\_bottom\_tab”,  
> “label”: “Tablet”,  
> “min”: 0,  
> “max”: 100,  
> “step”: 1,  
> “default”: 20  
> },  
> {  
> “type”: “range”,  
> “id”: “margin\_bottom”,  
> “label”: “Desktop”,  
> “min”: 0,  
> “max”: 100,  
> “step”: 1,  
> “default”: 30  
> },  
> {  
> “type”: “header”,  
> “content”: “Settings for Slideshow”  
> },  
> {  
> “type”: “select”,  
> “id”: “style\_slideshow”,  
> “label”: “Style Slideshow”,  
> “default”: “style\_1”,  
> “options”: [  
> {  
> “value”: “style\_1”,  
> “label”: “Style 1”  
> },  
> {  
> “value”: “style\_2”,  
> “label”: “Style 2”  
> }  
> ]  
> },  
> {  
> “type”: “checkbox”,  
> “id”: “autoplay”,  
> “label”: “Slideshow Auto Play”,  
> “default”: true  
> },  
> {  
> “type”: “select”,  
> “id”: “slideshow\_speed”,  
> “label”: “Change slides every”,
> 
> “options”: [  
> { “value”: “5000”, “label”: “5 seconds” },  
> { “value”: “6000”, “label”: “6 seconds” },  
> { “value”: “7000”, “label”: “7 seconds” },  
> { “value”: “8000”, “label”: “8 seconds” },  
> { “value”: “9000”, “label”: “9 seconds” },  
> { “value”: “10000”, “label”: “10 seconds” }  
> ],  
> “default”: “5000”  
> },  
> {  
> “type”: “select”,  
> “id”: “slideshow\_transition”,  
> “label”: “Slideshow transition effect”,  
> “options”: [  
> {  
> “value”: “false”,  
> “label”: “Slide”  
> },  
> {  
> “value”: “true”,  
> “label”: “Fade”  
> }  
> ],  
> “default”: “true”  
> },  
> {  
> “type” : “radio”,  
> “id” : “dots”,  
> “label” : “Show Dots for Slideshow (Desktop)”,  
> “options”: [  
> {  
> “value”: “true”,  
> “label”: “True”  
> },  
> {  
> “value”: “false”,  
> “label”: “False”  
> }  
> ],  
> “default”: “true”  
> },  
> {  
> “type”: “color”,  
> “id”: “dots\_color”,  
> “label”: “Dots color”,  
> “default”: “#707979”,  
> “info”: “Default Value: #707979”  
> },  
> {  
> “type”: “color”,  
> “id”: “dots\_active\_color”,  
> “label”: “Dots Active color”,  
> “default”: “#505656”,  
> “info”: “Default Value: #505656”  
> },  
> {  
> “type”: “checkbox”,  
> “id”: “dots\_opacity”,  
> “label”: “Dots Opacity (80%)”,  
> “default”: false  
> },  
> {  
> “type”: “color”,  
> “id”: “bg\_dots\_color”,  
> “label”: “Dots Background Style 2”,  
> “default”: “#bababa”,  
> “info”: “=======================”  
> },  
> {  
> “type”: “checkbox”,  
> “id”: “arrow\_active”,  
> “label”: “Show Arrow for Slideshow (Desktop)”,  
> “default”: true  
> },  
> {  
> “type”: “color”,  
> “id”: “arrow\_color”,  
> “label”: “Arrow color”,  
> “default”: “#666d6d”,  
> “info”: “Default Value: #666d6d”  
> },  
> {  
> “type”: “color”,  
> “id”: “arrow\_border\_color”,  
> “label”: “Arrow Border color”,  
> “default”: “#666d6d”,  
> “info”: “Default Value: #666d6d”  
> },  
> {  
> “type”: “color”,  
> “id”: “arrow\_bg\_color”,  
> “label”: “Arrow background color”,  
> “default”: “#fff”,  
> “info”: “Default Value: #fff”  
> },  
> {  
> “type” : “text”,  
> “id” : “position\_slick\_arrow”,  
> “label” : “Position Arrow - Unit % or px”,  
> “default” : “10%”  
> },  
> {  
> “type” : “text”,  
> “id” : “min\_width\_banner\_button”,  
> “label” : “Banner Button Width”,  
> “info”: “Ex: 270px”  
> },  
> {  
> “type”: “header”,  
> “content”: “Settings for Video”  
> },  
> {  
> “type” : “color”,  
> “id” : “bg\_video”,  
> “label” : “Background Color video”,  
> “default” : “#866965”  
> },  
> {  
> “type”: “range”,  
> “id”: “bg\_overlay\_opacity”,  
> “label”:“Opacity”,  
> “min”: 0,  
> “max”: 100,  
> “step”: 1,  
> “unit”: “%”,  
> “default”: 40  
> },  
> {  
> “type”: “text”,  
> “id”: “video\_height”,  
> “label”: “Slideshow Video Height”,  
> “default”: “41.7%”,  
> “info”: “You can adjust the height of video to be fit with slider image by %. Example: 30%, 47.25%, 51%.”  
> },  
> {  
> “type”: “checkbox”,  
> “id”: “auto\_playvideo”,  
> “label”: “Autoplay video”,  
> “default”: true  
> }  
> ],
> 
> “blocks” : [  
> {  
> “type”: “image”,  
> “name”: “Image SlideShow”,  
> “settings”:[  
> {  
> “type”: “checkbox”,  
> “id”: “dpl\_slide\_img”,  
> “label” : “Enable”,  
> “default” : true  
> },  
> {  
> “type”: “image\_picker”,  
> “id”: “image\_slide”,  
> “label” : “Select Image”,  
> “info”: “Recommended Image: Width x Height (1880 x 720)px”  
> },  
> {  
> “type”: “image\_picker”,  
> “id”: “image\_slide\_mb”,  
> “label” : “Select Image Mobile”,  
> “info”: “Recommended Image: Width x Height (450 x 300)px”  
> },  
> {  
> “type”: “header”,  
> “content”: “Slideshow Layout”,  
> “info” : “=======================”  
> },  
> {  
> “type”: “select”,  
> “id”: “style\_content”,  
> “label”: “Style Content”,  
> “default”: “style\_1”,  
> “options”: [  
> {  
> “value”: “style\_1”,  
> “label”: “Style 1”  
> },  
> {  
> “value”: “style\_2”,  
> “label”: “Style 2”  
> }  
> ]  
> },  
> {  
> “type”: “select”,  
> “id”: “alignment”,  
> “label”: “Position Content”,  
> “default”: “left”,  
> “options”: [  
> {  
> “value”: “left”,  
> “label”: “Left”  
> },  
> {  
> “value”: “center”,  
> “label”: “Center”  
> },  
> {  
> “value”: “right”,  
> “label”: “Right”  
> }  
> ]  
> },  
> {  
> “type”: “select”,  
> “id”: “text\_alignment”,  
> “label”: “Text alignment”,  
> “default”: “center”,  
> “options”: [  
> {  
> “value”: “left”,  
> “label”: “Left”  
> },  
> {  
> “value”: “center”,  
> “label”: “Center”  
> },  
> {  
> “value”: “right”,  
> “label”: “Right”  
> }  
> ]  
> },  
> {  
> “type” : “color”,  
> “id” : “bg\_color\_box”,  
> “label” : “Background Color Content Style 2”,  
> “default” : “#ffffff”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_border\_box”,  
> “label” : “Background Border Content Style 2”,  
> “default” : “#bcbcbc”  
> },  
> {  
> “type”: “header”,  
> “content”: “Slideshow Content”,  
> “info” : “=======================”  
> },  
> {  
> “type” : “text”,  
> “id” : “heading”,  
> “label” : “Heading”,  
> “default” : “Cosmopolis”  
> },  
> {  
> “type” : “text”,  
> “id” : “font\_size\_heading”,  
> “label” : "Heading Font Size ",  
> “default” : “40px”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_heading”,  
> “label” : “Heading Color”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_heading\_mb”,  
> “label” : “Heading Color Mobile”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “text”,  
> “id” : “sub\_heading”,  
> “label” : “Sub Heading”  
> },  
> {  
> “type” : “text”,  
> “id” : “font\_size\_sub\_heading”,  
> “label” : "Sub Heading Font Size ",  
> “default” : “30px”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_sub\_heading”,  
> “label” : “Sub Heading Color”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_sub\_heading\_mb”,  
> “label” : “Sub Heading Color Mobile”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “textarea”,  
> “id” : “slide-des”,  
> “label” : “Slide Description”,  
> “default”: “Quisquemos sodales suscipit tortor ditaemcos condimentum de cosmo lacus meleifend menean diverra loremous.”  
> },  
> {  
> “type” : “text”,  
> “id” : “font\_size\_des”,  
> “label” : “Description Font Size”,  
> “default” : “12px”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_des”,  
> “label” : “Description Color”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_des\_mb”,  
> “label” : “Description Color mobile”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “text”,  
> “id” : “button\_slide”,  
> “label” : “Button Slideshow”,  
> “default” : “Shop The Collection”  
> },  
> {  
> “type” : “url”,  
> “id” : “link”,  
> “label” : “Slide link”  
> },  
> {  
> “type” : “color”,  
> “id” : “bg\_button”,  
> “label” : “Background Button”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “border\_button”,  
> “label” : “Border Button”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_button”,  
> “label” : “Button Color”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “color”,  
> “id” : “bg\_button\_mb”,  
> “label” : “Background Button Mobile”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “border\_button\_mb”,  
> “label” : “Border Button Mobile”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_button\_mb”,  
> “label” : “Button Color Mobile”,  
> “default” : “#fff”  
> },  
> {  
> “type”: “header”,  
> “content”: “Slideshow width Lookbook”,  
> “info” : “=======================”  
> },  
> {  
> “type” : “header”,  
> “content” : “Product 1”  
> },  
> {  
> “type” : “product”,  
> “id” : “lb\_product\_1”,  
> “label” : “Select Product”  
> },  
> {  
> “type” : “text”,  
> “id” : “top\_position\_1”,  
> “label” : “Top Position”,  
> “default” : “10”,  
> “info” : “Unit %”  
> },  
> {  
> “type” : “text”,  
> “id” : “left\_position\_1”,  
> “label” : “Left Position”,  
> “default” : “10”,  
> “info” : “Unit %”  
> },  
> {  
> “type” : “color”,  
> “id” : “dots\_color\_1”,  
> “label” : “Select Icon Color”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “color”,  
> “id” : “dots\_bg\_color\_1”,  
> “label” : “Select Icon Background color”,  
> “default” : “#323232”  
> },  
> {  
> “type” : “color”,  
> “id” : “dots\_shadow\_color\_1”,  
> “label” : “Select Icon Shadow Color”,  
> “default” : “#fff”,  
> “info” : “=======================”  
> },
> 
> {  
> “type” : “header”,  
> “content” : “Product 2”  
> },  
> {  
> “type” : “product”,  
> “id” : “lb\_product\_2”,  
> “label” : “Select Product”  
> },  
> {  
> “type” : “text”,  
> “id” : “top\_position\_2”,  
> “label” : “Top Position”,  
> “default” : “10”,  
> “info” : “Unit %”  
> },  
> {  
> “type” : “text”,  
> “id” : “left\_position\_2”,  
> “label” : “Left Position”,  
> “default” : “10”,  
> “info” : “Unit %”  
> },  
> {  
> “type” : “color”,  
> “id” : “dots\_color\_2”,  
> “label” : “Select Icon Color”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “color”,  
> “id” : “dots\_bg\_color\_2”,  
> “label” : “Select Icon Background color”,  
> “default” : “#323232”  
> },  
> {  
> “type” : “color”,  
> “id” : “dots\_shadow\_color\_2”,  
> “label” : “Select Icon Shadow Color”,  
> “default” : “#fff”,  
> “info” : “=======================”  
> },
> 
> {  
> “type” : “header”,  
> “content” : “Product 3”  
> },  
> {  
> “type” : “product”,  
> “id” : “lb\_product\_3”,  
> “label” : “Select Product”  
> },  
> {  
> “type” : “text”,  
> “id” : “top\_position\_3”,  
> “label” : “Top Position”,  
> “default” : “10”,  
> “info” : “Unit %”  
> },  
> {  
> “type” : “text”,  
> “id” : “left\_position\_3”,  
> “label” : “Left Position”,  
> “default” : “10”,  
> “info” : “Unit %”  
> },  
> {  
> “type” : “color”,  
> “id” : “dots\_color\_3”,  
> “label” : “Select Icon Color”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “color”,  
> “id” : “dots\_bg\_color\_3”,  
> “label” : “Select Icon Background color”,  
> “default” : “#323232”  
> },  
> {  
> “type” : “color”,  
> “id” : “dots\_shadow\_color\_3”,  
> “label” : “Select Icon Shadow Color”,  
> “default” : “#fff”,  
> “info” : “=======================”  
> }  
> ]  
> },  
> {  
> “type”: “video”,  
> “name”: “Video Slider”,  
> “settings”: [  
> {  
> “type”: “checkbox”,  
> “id”: “dpl\_slide\_img”,  
> “label” : “Enable”,  
> “default” : true  
> },  
> {  
> “type” : “radio”,  
> “id” : “style\_video”,  
> “label” : “Style Video”,  
> “options”: [  
> {  
> “value”: “youtube”,  
> “label”: “Youtube”  
> },  
> {  
> “value”: “mp4”,  
> “label”: “Mp4”  
> }  
> ],  
> “default”: “youtube”  
> },  
> {  
> “type”: “header”,  
> “content”: “Youtube”  
> },  
> {  
> “type”: “text”,  
> “id”: “video\_link”,  
> “label”: “YouTube video ID”,  
> “default”: “eTCtDW7O1aM”,  
> “info”: “Find your YouTube video ID.”  
> },  
> {  
> “type”: “header”,  
> “content”: “MP4”  
> },  
> {  
> “type”: “text”,  
> “id”: “video\_mp4\_link”,  
> “label”: “Video link”  
> },  
> {  
> “type”: “header”,  
> “content”: “Slideshow Content”,  
> “info” : “Use for MP4 Video”  
> },  
> {  
> “type”: “select”,  
> “id”: “alignment”,  
> “label”: “Text alignment”,  
> “default”: “left”,  
> “options”: [  
> {  
> “value”: “left”,  
> “label”: “Left”  
> },  
> {  
> “value”: “center”,  
> “label”: “Center”  
> },  
> {  
> “value”: “right”,  
> “label”: “Right”  
> }  
> ]  
> },  
> {  
> “type” : “text”,  
> “id” : “heading”,  
> “label” : “Heading”,  
> “default” : “Cosmopolis”  
> },  
> {  
> “type” : “text”,  
> “id” : “font\_size\_heading”,  
> “label” : "Heading Font Size ",  
> “default” : “40px”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_heading”,  
> “label” : “Heading Color”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_heading\_mb”,  
> “label” : “Heading Color Mobile”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “textarea”,  
> “id” : “slide-des”,  
> “label” : “Slide Description”,  
> “default”: “Quisquemos sodales suscipit tortor ditaemcos condimentum de cosmo lacus meleifend menean diverra loremous.”  
> },  
> {  
> “type” : “text”,  
> “id” : “font\_size\_des”,  
> “label” : “Description Font Size”,  
> “default” : “12px”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_des”,  
> “label” : “Description Color”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_des\_mb”,  
> “label” : “Description Color Mobile”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “text”,  
> “id” : “button\_slide”,  
> “label” : “Button Slideshow”,  
> “default” : “Shop The Collection”  
> },  
> {  
> “type” : “url”,  
> “id” : “link”,  
> “label” : “Slide link”  
> },  
> {  
> “type” : “color”,  
> “id” : “bg\_button”,  
> “label” : “Background Button”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “border\_button”,  
> “label” : “Border Button”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_button”,  
> “label” : “Button Color”,  
> “default” : “#fff”  
> },  
> {  
> “type” : “color”,  
> “id” : “bg\_button\_mb”,  
> “label” : “Background Button Mobile”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “border\_button\_mb”,  
> “label” : “Border Button Mobile”,  
> “default” : “#232323”  
> },  
> {  
> “type” : “color”,  
> “id” : “color\_button\_mb”,  
> “label” : “Button Color Mobile”,  
> “default” : “#fff”  
> }  
> ]  
> }  
> ],  
> “presets”: [{  
> “name”: “Slideshow”,  
> “category”: “Slideshow”,  
> “blocks”: [  
> {  
> “type”: “image”  
> }  
> ]  
> }]  
> }  
> {% endschema %}

---

<div class="post-metadata">

**Author:** ![Dirk](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/dirk/32/33791_2.png) [@Dirk](https://community.shopify.com/u/Dirk)\
**Post date:** [January 25, 2021, 10:27pm UTC](https://community.shopify.com/t/how-do-i-decrease-the-size-of-the-slideshow/33277/2 "2021-01-25T22:27:55Z")

</div>

Hey, @Brianmonteiro54

Have you tried adjusting your slideshow layout from your theme editor? You can change it from full-width to default which will lower the height of the slideshow:

If there is anything else I can help you with, please let me know.

---

<div class="post-metadata">

**Author:** ![Brianmonteiro54](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@Brianmonteiro54](https://community.shopify.com/u/Brianmonteiro54)\
**Post date:** [January 26, 2021, 12:45am UTC](https://community.shopify.com/t/how-do-i-decrease-the-size-of-the-slideshow/33277/3 "2021-01-26T00:45:48Z")

</div>

Yes, but in the theme editor there is no way to reduce it the way I would like, then it is necessary to be directly in the code

---

<div class="post-metadata">

**Author:** ![diego\_ezfy](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/diego_ezfy/32/352174_2.png) [@diego\_ezfy](https://community.shopify.com/u/diego_ezfy)\
**Post date:** [January 26, 2021, 6:15am UTC](https://community.shopify.com/t/how-do-i-decrease-the-size-of-the-slideshow/33277/4 "2021-01-26T06:15:37Z")

</div>

@Brianmonteiro54

This is **not** the best way to solve this, but in your current case it’s the easiest way.

1. In your Shopify Admin go to: **online store \> themes \> actions \> edit code**
2. Find **Asset \> theme.min.css** and paste this at the bottom of the file:

```css
@media (min-width: 749px){
.home-slideshow-sections{
transform: scale(0.8) !important;
margin-top: -21px !important;
margin-bottom: -20px !important;
}
}

```

You can control the values as per your wish.

0.8 = the size of the image  
-21px = top spacing, can be either positive or negative  
-20px = bottom spacing, can be either positive or negative

It will affect only desktop and larger devices, mobile will remain the same.

Additionally, since you’re using just one single image and not a slideshow, [this custom section](https://ezfycode.com/shop/responsive-banner-free) may be useful to you.

Please let me know whether it works.

Kind regards,  
Diego
