XF 2.1 How to remove the Xenforo Logo?

chillman

Member
The normal logo of a clean software install is <img src="/styles/default/xenforo/xenforo-logo.png">

In which template can I change this?
 
If you want to remove the logo for mobile go to templates->PAGE_CONTAINER and look for

Code:
<div class="p-nav-smallLogo">

and remove the few lines of code as far as the end tag for the div (or just comment out that section). Similar for the desktop logo.
 
The question dates from two years ago.

Otherwise it is better to use css in the extra.less template to remove the logo rather than directly in the template.
Something like this:

Less:
.p-nav-smallLogo,
.p-header-logo {
    display: none;
}
 
Last edited:
Hiding images by setting them display: none is usually not a good idea as they might still be downloaded anyway.
This is specifically the case for the logo as it does not have loading=lazy attribute and is in initial viewport.

If the logo should really be removed (for small screens), it would be better (performance-wise) to remove that from the template.
 
Last edited:
For my information if i used .p-header {display: none;} would that still load the logo image?
Yes, most likely.

If you want, you can test that by creating a new style, apply that CSS to its extra.less, switch to that style in frontend, open your browser developer tools, disable cache, reload the page - you will see that the logo does still get loaded.
 
Tested and the result is...

Here It Is Season 6 GIF by Friends


The logo loads !!
 
Back
Top Bottom