SoftArtisans

Search
Skip to content
  • About
  • Tech
    • Retro Tech
    • Women In Tech
    • Truth in Tech
    • ASP.NET
  • Excel
  • Big Data
  • Events
  • OfficeWriter
    • Knowledge Base
      • ExcelWriter Knowledge Base
      • WordWriter Knowledge Base
    • Webinars
    • News Releases
    • Reviews
  • SoftArtisans
    • Meet the Team
    • Intern Diaries
SharePoint

Site Logo and Custom SharePoint Master Page

January 29, 2010 yen

I created a custom SharePoint master page based on SharePoint default.master. I found that the flashy site logo that I specified in the custom master page is not used. Instead, my application page uses the prosaic default SharePoint site logo. In the master page, the site logo is specified by the following mark-up:

<SharePoint:SiteLogoImage ID="onetidHeadbnnr0" LogoImageUrl="/_layouts/images/SoftArtisans/logo.png" runat="server" />

It turns out that the SiteLogoImage control is quite intelligent. It picks up the image specified in the Site Settings > Look and Feel > Title, description and icon > Logo URL and description setting. The URL specified in the control is only used if the Logo URL and description field is empty. This is great if you want to allow a user, with the appropriate permissions, to specify the site logo. However, for our purpose, we want to custom-brand the site with a fixed logo.

To get the desired change, simply replace the above mark-up with a standard HTML <img> tag. You’d get the added benefit of reducing the number of server controls.

For future reference you may want to comment out the above mark-up instead of removing it entirely. If so, use the ASPX <%- --%> comment syntax rather than the HTML <!- --> comment syntax. ASPX comments are removed completely, resulting in a smaller file size for the generated HTML.

Share the post "Site Logo and Custom SharePoint Master Page"

  • Facebook
  • Twitter
  • Google+
  • LinkedIn
  • E-mail
Email, RSS Follow
Email

Related posts:

NEUGS Part 11: Workflows, AKA Lifesavers for the Lazy
SoftArtisans SPC Social
23 Lessons from SharePoint Saturday the Conference
aspx comment syntaxhtmlsharepoint site logo

Post navigation

Previous PostRemoving Character from String in C SharpNext PostDefining Managed Path When Creating New SharePoint Site

PowerPointWriter

Video Resources

Blogged

Contact Us!


Follow Us On Google +! Have Questions About OfficeWriter? Follow Our Tag On Stackoverflow!

Recently

  • How to Use PageSetup Options When Saving to a PDF Document
  • Save PDF file to HttpResponse
  • How to Save an Excel Workbook to a PDF Document
  • How to Calculate Unsupported or Custom Formulas on the Server with ExcelWriter
  • Saving Your Report’s Data in CSV Format

Blog Topics

Tags

bi Big Data blackberry boss c# data markers Excel excelapplication exceltemplate excelwriter hadoop iis internships knowledge base machine learning meet the team neugs OfficeWriter officewriter designer pitan pivot table pivot tables pivottables powerpivot powershell power view Programming reporting services scrum sharepoint sharepoint community SoftArtisans spc sql server SSRS truth in tech twitter visual studio webinars wit women in tech wordapplication WordTemplate wordwriter xml

Subscribe to the blog!

Enter your email address:

.NET Blogroll

  • Better Git with PowerShell
  • Brij Hushan
  • Leon Bambrick
  • Mohamed Meligy
  • Rob Conery
  • Scott Guthrie

BI Blogroll

  • Andrew Brust
  • Boyan Penev
  • Chris Webb
  • Richard Back
  • Rob Kosara
  • Ted Cuzzillo

Excel/PowerPivot Blogroll

  • Dick Moffat
  • Jon Peltier
  • Rob Collie
  • Stephen Few

SharePoint Blogroll

  • Andrew Connell
  • Bil Simser
  • Bill Baer
  • Chris O'Brien
  • Geoff Varosky
  • Joel Oleson
  • Marc Anderson
  • Marc Rackley
  • Nothing But SharePoint
  • Paul Forsthoff
  • Paul Stubbs
  • Spence Harbar
  • Todd Klindt

SQL Server Blogroll

  • Brent Ozar PLF
  • Buck Woody
  • Dev Nambi
  • Jaime Tarquino
  • James Serra
  • Jamie Thompson
  • Pinalkumar Dave
  • Robert L. Davis
  • Steve Marx

OfficeWriter

OfficeWriter
  • How to save an Excel Workbook to PDF with OfficeWriter - https://t.co/MW83FGHMtc 03:20:27 PM March 29, 2016 from Twitter Web Client ReplyRetweetFavorite
  • New release- OfficeWriter V10 has support for XLSX/XLSM to PDF and formulas for the calculation engine - https://t.co/lJgtniS1as 03:19:03 PM March 29, 2016 from Twitter Web Client ReplyRetweetFavorite
  • The weather in Boston might be cooling down, but OfficeWriter is heating up with new Version 9.1 release - http://t.co/2mxii2Tavv 01:53:56 PM October 06, 2014 from Twitter Web Client ReplyRetweetFavorite
@officewriter
Proudly powered by WordPress