XF 2.1 Mobile logo

upnet

Active member
Our logo in the header isn't looking too great on mobile in 2.x. Is it possible to change the margins above and below the logo on mobile only? Will that effectively enlarge the mobile logo?
 
Wanting to reduce the margins for mobile. Desktop is good as is. Changing the actual image would make it bad for desktop which only switches the problem.
 
I tried

.p-nav-smallLogo {
margin: 2px 0 2px 0;
}

It didn't visually change the space above or below the logo. I tried 15x 0 15x 0 as well and it expanded the space above and below but the logo remained the same size. I'm guessing my idea about margins doesn't change the image display size as I had wrongfully hoped. :)
 
If you want different size for logo, you need a different logo. In PAGE_CONTAINER template find publicLogoUrl. There are 2 entries: one for normal logo and one for mobile logo. By default both are the same. Change one that is inside div with class p-nav-smallLogo to different logo
 
You can have 2 seperate logos. 1 for desktop, 1 for mobile.
 
Back
Top Bottom