How can I adjust my store logo size for mobile and desktop separately?

Hey, my logo is too small on desktop and mobile found a way to change the size to make them larger using this code:

.site-header__logo img {
  max-width: 250px!important;
  width: 250px!important;
}

I want 250px for desktop and 195px for mobile but it does both of them at 250px and its way too big for mobile

I would really appreciate if anyone could help me

mavidals.com

1 Like
img.inverted-logo.imgset.radius-none.ls-is-cached.lazyloaded {
    width: 250px;
}

Add this css at the bottom of
Online Store->Theme->Edit code->Assets->theme.scss.liquid

1 Like

Hello

You can easily make use of Canva.com for the designs

And set up with Custom Size

The max size for my theme is 200px for desktop and 150px for mobile.

This worked but I wanted the header logo to change also

for mobile or desktop ?

1 Like

Desktop

Hello,

use canva tool and make your logo as per your need.

punch https://www.canva.com/

use custom design & according to your size!

hope this will work.

1 Like

Found a solution on https://community.shopify.com/c/Shopify-Design/Logo-Size-on-Debutify-Theme/td-p/623793 used the first codes and the code you gave me, had to add important to yours because the code for mobile override it, didn’t think that would actually work, thanks for all your help

@media screen and (min-width: 590px) {
.sticky-header.is-scrolling .site-header__logo .default-logo {    width: 250px !important;
    }
}

img.inverted-logo.imgset.radius-none.ls-is-cached.lazyloaded {
    width: 250px !important;
}

.site-header__logo img {
  max-width: 250px!important;
  width: 197px!important;
}

Do you think I should make any adjustments to the code?

@Mavidals ,

Your issue is solved or not ?