Book Image

SharePoint 2013 WCM Advanced Cookbook

By : JOHN CHAPMAN
Book Image

SharePoint 2013 WCM Advanced Cookbook

By: JOHN CHAPMAN

Overview of this book

Table of Contents (19 chapters)
SharePoint 2013 WCM Advanced Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Customizing the shortcut icon (favicon) using a master page


The shortcut icon, or favicon, is a 16 px by 16 px image that most browsers will display as part of the title bar when viewing a web page as well as when bookmarking the web part. In this recipe, we will change the shortcut icon with our customized master page.

How to do it...

Follow these steps to customize the shortcut icon using the master page:

  1. Open SharePoint Designer.

  2. Select Open Site. Enter the complete URL to the SharePoint site and select Open.

  3. From the Navigation pane, select Master Pages.

  4. In the list of files in the Master Pages library, make a copy of seattle.master (for our example, we have renamed it Seattle_ShortcutIcon.master).

  5. Check out the new Seattle_ShortcutIcon.master master page.

  6. Open the Seattle_ShortcutIcon.master master page.

  7. Locate the <SharePoint:SPShortcutIcon> element.

  8. Provide a custom image URL using the following code:

    <SharePoint:SPShortcutIcon runat="server" IconUrl="/_catalogs/masterpage/resources...