How can I resize the logo list on mobile devices?

Hi everyone , I have the logo-list on my store and it all looks fine on PC however on mobile devices the logos are huge and are all shown bellow each other rather than at the side of each other.

Is there a way to have them smaller on mobile devices please?

any help appreciated and current code:

.logo-bar__item { display: inline-block; max-width: {{ section.settings.logo_width }}; }

{{ section.settings.title | escape }}

{%- if section.blocks.size > 0 -%}

{%- endif -%}

{% schema %}
{
“name”: “Logo list”,
“class”: “index-section”,
“max_blocks”: 10,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Logo list”
},
{
“type”: “select”,
“id”: “logo_width”,
“label”: “Logo width”,
“default”: “160px”,
“options”: [
{
“label”: “Extra Small”,
“value”: “100px”
},
{
“label”: “Small”,
“value”: “125px”
},
{
“label”: “Medium”,
“value”: “160px”
},
{
“label”: “Large”,
“value”: “175px”
},
{
“label”: “Extra Large”,
“value”: “200px”
}
]
}
],
“blocks”: [
{
“type”: “logo_image”,
“name”: “Logo”,
“settings”: [
{
“type”: “image_picker”,
“id”: “image”,
“label”: “Image”
},
{
“type”: “url”,
“id”: “link”,
“label”: “Link”,
“info”: “Optional”
}
]
}
],
“presets”: [
{
“name”: “Logo list”,
“category”: “Image”,
“blocks”: [
{
“type”: “logo_image”
},
{
“type”: “logo_image”
},
{
“type”: “logo_image”
},
{
“type”: “logo_image”
}
]
}
]
}
{% endschema %}

@Ljvapes - please share the logo page link

Hi

https://ljvapes.co.uk/

its ok on pc but on mobile the images are huge?

@Ljvapes - please add this css to the very end of your theme-styles.css file and check

@media screen and (max-width:749px){
.index-section ul{padding-left: 0;}
.index-section .logo-bar__item{max-width: 50% !important;}

}

They are still very large on mobile im afraid ?

would there be a solution to have them only appear on pc and not on mobile of that is easier

@Ljvapes - add this css to hide, it is for this section only, if you change / delete section then this code will not work

@media screen and (max-width:749px){
div#shopify-section-b3f820fa-7787-4974-8699-8ea1a5ab0755 {
    display: none;    visibility: hidden;}
}

Thank you , does this replace the code already inputted please?

@Ljvapes - no, no need to replace

That has worked perfectly thank you so much for your help, very much appreciated

I don’t suppose you would know how to move the about us section to the middle of the page would you sorry to bother you

@Ljvapes - like this?

Hi yes please on the main page though? on the home screen the “WELCOME TO LJVAPES” and the text below it is aligned left and i wanted it in the middle if possible?

@Ljvapes - add this

.section-about-us .about-us.container{text-align: center; margin-top: 20px;}
1 Like

sorry where do I add this code please?

@Ljvapes - theme-styles.css file

1 Like

That’s amazing thank you so much I really appreciate your help :+1: