So I want to increase my logo size on mobile template for my website. In the settings it is maxed out and cant make it any bigger. Can someone help me edit it in the code?
Topic summary
A user seeks to increase their logo size on mobile devices beyond the maximum allowed in the Local theme settings. Two solutions are provided:
Solution 1 (Dan-From-Ryviu):
- Add custom code to the
theme.liquidfile before the closing</head>tag - Access via: Online Store > Themes > Edit code
Solution 2 (oscprofessional):
- Insert CSS code into
theme.cssfile (located in Assets folder) - The code targets
.site-header.logo imgwith a media query for screens up to 767px width - Sets logo width to 235px with
!importantflag - Add the code at the bottom of the CSS file
Both approaches involve editing theme files directly to override the default mobile logo size restrictions.
Hi @CarnivalIce
You can add this code to theme.liquid file before tag in Online store > Themes > Edit code
Hello @CarnivalIce
You can try this code: it will be helpful to you
Go to the Online Store->Theme->Edit code->Assets->theme.css>Add this code at the bottom.
@media screen and (max-width: 767px){
.site-header .logo img {
width: 235px !important;
}
}
