XF 2.3 Different logo on mobile screens

hakyangler

Active member
Hello; I have 2 logos in my hand. There is no problem with the normal appearance, but I want to put a different logo on the mobile screens. I didn't manage to do this, is there anyone who can give information?_
 
Solution
You can add something like this in your extra.less template:
Less:
@media (max-width: @xf-responsiveMedium) {
    .p-nav-smallLogo img {
        display: none;
    }
    .p-nav-smallLogo {
        width: 50px;
        height: 37px;
        background-image:url('path/to/your/file');
        background-size: contain;
        background-repeat: no-repeat;
    }
}
What I'm talking about has nothing to do with what you said.
Yes it does, you can change the logo in extra.lesd via max width CSS.
Example = (max-width: 480px)
CSS is not my forte, but it can be done
Just throwing out handgernades.

Example:
CSS:
// Enable Mobile Signatures
@media (max-width: 480px)
{.message-signature

{display: block; }
}
 
You can add something like this in your extra.less template:
Less:
@media (max-width: @xf-responsiveMedium) {
    .p-nav-smallLogo img {
        display: none;
    }
    .p-nav-smallLogo {
        width: 50px;
        height: 37px;
        background-image:url('path/to/your/file');
        background-size: contain;
        background-repeat: no-repeat;
    }
}
 
Solution
Back
Top Bottom