Is there any way to remove the site logo from the Confluence navigation bar, and just have the site title, on its own?
Here is the CSS.
.aui-header-logo.aui-header-logo-custom img{display:none;}
Thank you - unfortunately there's still a bit of padding to the left of the title (that there isn't on the right of the title). Is there a way to get rid of that? I couldn't do by adding padding-left, margin-left or border-left: 0px to that CSS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The padding in on the <a> element. So you would do this ...
.aui-header-logo.aui-header-logo-custom a{padding: 0px 10px 0px 0px;}
The order of the padding is this css is top, right, bottom, left. So, this would leave the 10px padding on the rigt side but 0 out the padding on the <a> element on the left side. By default the left and right have 10px. If you zero out the right side it doesn't look right ... at least in my environment. The spacing becomes uneven between the header items.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using OnDemand or the standalone version of Confluence? If the standalone, then you can edit the decorator templates and remove the code yourself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Beth,
There is but it will take a bit of css customization on your end. How I accomplished this is to turn on the Show logo and title option in Confluence Admin > Site Logo page.
Now I have the site logo and the site title showing in the global nav bar. I opened up the developer console in Chrome and found the element responsible for the header logo and site title section. Since we're trying to remove the logo and leave the title - and still have this clickable to take us to the Confluence root page, I removed the src location for the img and also removed the alt text value so that effectively nothing shows for the logo, but the title remains.
Here is the respective element after modification:
<div class="aui-header-primary"><h1 id="logo" class="aui-header-logo aui-header-logo-custom" style=""><a href="/confluence/"><img src="" alt="" data-aui-responsive-header-index="0"><span class="aui-header-logo-text">Confluence</span></a></h1><ul class="aui-nav" style="width: auto;">
You can see that the img src and alt properties are empty sets. This accomplishes what you're looking for I believe. You'll need to write that up as a css stylesheet rule and put that in the global stylesheet for confluence at Confluence Admin > Stylesheet.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.