- This topic has 15 replies, 6 voices, and was last updated 6 years, 10 months ago by
Leo.
-
AuthorPosts
-
November 2, 2016 at 3:04 am #241015
generatepressiscool
What should the size be of the mobile header logo?
Everytime I add a logo it seems to get shrinked. Even if I add something that’s 1024×1024 in size, it will get shrinked again. Why is this?
Optimal size for mobile header logo both when using a square or rectangle = ?
November 2, 2016 at 9:30 am #241124Tom
Lead DeveloperLead DeveloperThe navigation logo/mobile header logo will be resized to fit in your navigation/mobile header.
So if your mobile header is 60px in height, the logo will be resized to 40px in height to allow for 10px padding on top and bottom of the logo.
You can overwrite this with some CSS:
/* Navigation logo */ .main-navigation .sticky-logo, .main-navigation .sticky-logo img { height: 40px; } /* Mobile header */ .mobile-header-navigation .mobile-header-logo, .mobile-header-navigation .mobile-header-logo img { height: 40px; }
Hope this helps 🙂
November 3, 2016 at 1:56 pm #241494generatepressiscool
Okay that works. But it seems the logo gets aligned vertically at the bottom. How to put it centered?
November 3, 2016 at 7:29 pm #241540Tom
Lead DeveloperLead DeveloperIt has 10px of margin on top which you can adjust with CSS:
.sticky-menu-logo .main-navigation.navigation-clone .sticky-logo { margin-top: 10px; }
November 4, 2016 at 12:01 am #241562generatepressiscool
Didn’t work, but this did
/* Mobile header */ .mobile-header-navigation .mobile-header-logo, .mobile-header-navigation .mobile-header-logo img { height: 15px; padding-top:4px; }
The other code doesn’t seem necessary?
/* Navigation logo */ .main-navigation .sticky-logo, .main-navigation .sticky-logo img { height: 40px; }
November 4, 2016 at 12:14 am #241568Tom
Lead DeveloperLead DeveloperThe other code is only if you want to adjust the navigation logo as well.
Glad you found a solution 🙂
November 4, 2016 at 12:54 am #241570Yannick
I’m trying as well to change the size of my mobile logo independent on the size of my navigation logo.
/* Navigation logo */ .main-navigation .sticky-logo, .main-navigation .sticky-logo img { height: 60px; margin-left: 20px; margin-top: 5px; } /* Mobile header */ .mobile-header-navigation .mobile-header-logo, .mobile-header-navigation .mobile-header-logo img { height: 40px !important; }
the logo size on smartphone or tablet always keeps the 60 px from the navigation logo?
best wishes
YannickNovember 4, 2016 at 10:35 am #241712Tom
Lead DeveloperLead DeveloperNo, the 40px you have set there should apply to your mobile header logo as long as you’re using the mobile header option in “Customize > Layout > Header”.
November 4, 2016 at 8:51 pm #241856Yannick
Thank you!! 🙂
November 5, 2016 at 12:13 am #241865Tom
Lead DeveloperLead DeveloperNo problem 🙂
October 25, 2018 at 1:58 am #709946Matthias
I’m trying to change the size of my mobile header logo and used those examples but there is no change. I’m using the mobile header option.
My website http://www.kiwisuisse.chOctober 25, 2018 at 5:44 am #710064David
StaffCustomer SupportHi there,
this is a really old topic, try this instead:
@media (max-width: 768px) { .mobile-header-navigation .site-logo.mobile-header-logo img { height: 50px; } }
October 25, 2018 at 8:45 am #710345Matthias
I have tried this but still to no effect. Any idea why?
October 25, 2018 at 8:49 am #710347David
StaffCustomer SupportI edited the code above to include it within the media query
October 29, 2018 at 8:36 am #713186Matthias
I updated the code, but still no change. Have you checked out my page?
-
AuthorPosts
- The topic ‘Mobile header logo: optimal size?’ is closed to new replies.