Skip to main content

Change SharePoint 2010 Site Logo Via CSS

I thought that I created this post before, but I guess it was either the SharePoint 2007 Logo, or the SharePoint 2010 Search Button. So here it is.

Very much like the two examples above, if you simply want to change the site logo via CSS globally, or for a single site. Without having to go to the Site Actions > Site Settings > Title and description > adding in a URL to site logo. Then simply do the following:

  • Copy your image anywhere users can access it
  • Paste in the following CSS into your custom CSS file

.s4-titlelogo{
background-image: url(/_layouts/images/centraladmin_security_48x48.png);
background-position:left center;
background-repeat: no-repeat;
}
.s4-titlelogo > a > img{
visibility: hidden;
width: 48px;
height: 48px;
}

  • Update the background image URL path above in red to where you uploaded the image
  • Change the width and height above in Blue to match the image dimensions.

Before:
image

After:
image

Comments

Anonymous said…
It is possible to change the logo directly in the properties of the site.
I do not have a SharePoint 2010 under my hand to point it for you but I have done it before so I am sure
Erik Swenson said…
Yes, if you simply go to site settings, Title, description, and icon. You can manually add in a URL path to the logo but that only changes it for that specific site. By using CSS you can easily update all sites with just CSS and it can be made globally.
Stacy said…
Good post!

Most people don't realize that a lot of design customization in SharePoint can be done just by CSS modifications.
jhonblack said…
Excellent post, thanks for collating the information. I have been searching google and yahoo for information related to this and it led me to your bloglogo design
Cori said…
Worked perfectly, thank you.
Nice post. Great blog. Thanks for the share. It was very interesting and informative. Keep posting. I follow you.
Anonymous said…
Hello,
I would like to change the link in the logo, so once you click on the new logo will redirect to another page.
alex said…
Thank you for sharing this! Just what I’ve been searching for. Great info!

Assignment Writing
alex said…
There Is Obviously a lot to know about this. I suppose you made Some Great points in the Feature also.

Custom Essay Writing
kurt me said…
great work thanks for sharing great source of information. thesis writing service
Arabella Simson said…

This blog Is very informative, I am really pleased to post my comment on this blog. It helped me with ocean of knowledge so I really belive you will do much better in the future. Good job
Airport Taxi
anastasia tan said…
http://camaragenbandarq.blogspot.com/2017/05/membahas-macam-macam-judi-di-indonesia.html
http://agenbandarqcamarqq.blogspot.com/2017/05/mengetahui-4-tempat-judi-termewah-di.html
http://agendomino99camarqq.blogspot.com/2017/06/trik-curang-main-bandarq.html
http://agendominocamar.blogspot.com/2017/06/mengetahui-warnet-di-jepang-yang.html
http://agendominocamarqq.blogspot.com/2017/06/cara-mendaftar-di-shioqq-situs-agen.html
http://www.jakartatercinta.com/2017/05/mengenal-situs-shioqq-agen-bandarq.html
http://www.jakartatercinta.com/2017/05/shioqqnet-agen-bandarq-yang-memberi.html

Popular posts from this blog

How To: Hide Left Side Navigation on Home Page

I was recently asked: "How can I hide the side nav bar on the main homepage layout ?? I want to be able to use the side NAV with in the team site etc etc, but I don't want it on the front page.. " There are a couple of ways to do this in SharePoint 2010. If you are using a non-publishing site you can add a Content Editor Web Part to the page and add the following to the HTML Source.
<Style>
body #s4-leftpanel
{
display: none;
}
.s4-ca
{
margin-left: 0px;
}
</style>
Basically the CSS above hides the left navigation Div, and then sets the content area to not have a left margin. Once you are done, simply modify the web part and hide it on the page. If you are using a publishing site for your homepage simply add the same styles specified above to a custom page layout. That way if you have a need for other pages that do not need the left side navigation you can re-use the page layout.

Small Calendar for SharePoint 2010 & 2013

First off I would like to apologize for the lack of posts. I have been really busy with my new role as the UX Design lead within Slalom Consulting Boston. I will share more about that in another post. In a previous post Create Really Small Calendar I showcased how to do this for SharePoint 2007. However the 2010 and 2013 calendar views have changed and therefore we cannot use the same method or CSS as 2007.SharePoint 2010 Small Calendar:
SharePoint 2013 Small Calendar:
See video below for a video walk through on how to create a small calendar for SharePoint 2010 and & SharePoint 2013 with just CSS.Per the video above here is the code that I referenced:2010 CSS link reference in Master Page:
<SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/smallcalendar.css %>" After="corev4.css" runat="server"/>2010 CSS:
/**** Small Calendar ***/
.ms-acal-item{height: 10px !important;}
.ms-acal-sdiv,
.ms-acal-mdiv,
.ms-…

SharePoint 2010 Base CSS Classes

This will be the first of many SharePoint 2010 posts. I will be focusing on a few of the main CSS classes used for SharePoint 2010 Public Beta. As the product becomes more final there might be some changes to the class names but I will be sure to create a new post if that happens. This will be quite a lengthy but it should be helpful. The default CSS given below are just highlights of the full CSS attributes for that class.I will be using a basic team site as my base for the screenshots. Here is a basic structure of the main areas that I will cover.Ribbon RowTable Row Left Site Actions Navigate Up Edit Tab List Browse Page Table Row Right Give Feedback Welcome Menu WorkspaceBody Container Title Row Title Title Logo Title Text / BreadcrumbPage DescriptionSocial Data SeparatorI like It Tags/Notes Top Header 2/Top Links li Static-Selected li Static SearchHelpStatus Bar Container Main A…