title: Sharepoint 2010 Blue Ribbon Tag
body: <p>I've created new master page in Sharepoint 2010 and mistakenly I missed Blue Ribbon. I've tried various ways to get back that blue-ribbon, can someone give me exact and only code sample of blue-ribbon for Sharepoint 2010.</p>
  
  <p>I copy / past following code from v4.master but still not working:</p>
  
  <pre><code>&lt;div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle"&gt;
      &lt;div id="s4-ribboncont"&gt;
          &lt;SharePoint:SPRibbon
              runat="server"
              PlaceholderElementId="RibbonContainer"
              CssFile=""&gt;
              &lt;SharePoint:SPRibbonPeripheralContent
                  runat="server"
                  Location="TabRowLeft"
                  CssClass="ms-siteactionscontainer s4-notdlg"&gt;
                         &lt;span class="ms-siteactionsmenu" id="siteactiontd"&gt;
                         &lt;SharePoint:SiteActions runat="server" accesskey="&lt;%$Resources:wss,tb_SiteActions_AK%&gt;" id="SiteActionsMenuMain"
                          PrefixHtml=""
                          SuffixHtml=""
                          MenuNotVisibleHtml="&amp;amp;nbsp;"
                          &gt;
                          &lt;CustomTemplate&gt;
                          &lt;SharePoint:FeatureMenuTemplate runat="server"
                              FeatureScope="Site"
                              Location="Microsoft.SharePoint.StandardMenu"
                              GroupId="SiteActions"
                              UseShortId="true"
                              &gt;
                              &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditPage"
                                  Text="&lt;%$Resources:wss,siteactions_editpage%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_editpagedescriptionv4%&gt;"
                                  ImageUrl="/_layouts/images/ActionsEditPage.png"
                                  MenuGroupId="100"
                                  Sequence="110"
                                  ClientOnClickNavigateUrl="javascript:ChangeLayoutMode(false);"
                                  /&gt;
                              &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_TakeOffline"
                                  Text="&lt;%$Resources:wss,siteactions_takeoffline%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_takeofflinedescription%&gt;"
                                  ImageUrl="/_layouts/images/connecttospworkspace32.png"
                                  MenuGroupId="100"
                                  Sequence="120"
                                  /&gt;
                              &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreatePage"
                                  Text="&lt;%$Resources:wss,siteactions_createpage%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_createpagedesc%&gt;"
                                  ImageUrl="/_layouts/images/NewContentPageHH.png"
                                  MenuGroupId="200"
                                  Sequence="210"
                                  UseShortId="true"
                                  ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('Page')) { OpenCreateWebPageDialog('~site/_layouts/createwebpage.aspx') }"
                                  PermissionsString="AddListItems, EditListItems"
                                  PermissionMode="All" /&gt;
                              &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreateDocLib"
                                  Text="&lt;%$Resources:wss,siteactions_createdoclib%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_createdoclibdesc%&gt;"
                                  ImageUrl="/_layouts/images/NewDocLibHH.png"
                                  MenuGroupId="200"
                                  Sequence="220"
                                  UseShortId="true"
                                  ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('DocLib')) { GoToPage('~site/_layouts/new.aspx?FeatureId={00bfea71-e717-4e80-aa17-d0c71b360101}&amp;amp;ListTemplate=101') }"
                                  PermissionsString="ManageLists"
                                  PermissionMode="Any"
                                  VisibilityFeatureId="00BFEA71-E717-4E80-AA17-D0C71B360101" /&gt;
                              &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreateSite"
                                  Text="&lt;%$Resources:wss,siteactions_createsite%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_createsitedesc%&gt;"
                                  ImageUrl="/_layouts/images/newweb32.png"
                                  MenuGroupId="200"
                                  Sequence="230"
                                  UseShortId="true"
                                  ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('Site')) { STSNavigate('~site/_layouts/newsbweb.aspx') }"
                                  PermissionsString="ManageSubwebs,ViewFormPages"
                                  PermissionMode="All" /&gt;
                              &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_Create"
                                  Text="&lt;%$Resources:wss,siteactions_create%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_createdesc%&gt;"
                                  MenuGroupId="200"
                                  Sequence="240"
                                  UseShortId="true"
                                  ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('All')) { STSNavigate('~site/_layouts/create.aspx') }"
                                  PermissionsString="ManageLists, ManageSubwebs"
                                  PermissionMode="Any" /&gt;
                              &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_ViewAllSiteContents"
                                  Text="&lt;%$Resources:wss,quiklnch_allcontent%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_allcontentdescription%&gt;"
                                  ImageUrl="/_layouts/images/allcontent32.png"
                                  MenuGroupId="300"
                                  Sequence="302"
                                  UseShortId="true"
                                  ClientOnClickNavigateUrl="~site/_layouts/viewlsts.aspx"
                                  PermissionsString="ViewFormPages"
                                  PermissionMode="Any" /&gt;
                               &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditSite"
                                  Text="&lt;%$Resources:wss,siteactions_editsite%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_editsitedescription%&gt;"
                                  ImageUrl="/_layouts/images/SharePointDesigner32.png"
                                  MenuGroupId="300"
                                  Sequence="304"
                                  UseShortId="true"
                                  ClientOnClickScriptContainingPrefixedUrl="EditInSPD('~site/',true);"
                                  PermissionsString="AddAndCustomizePages"
                                  PermissionMode="Any"
                              /&gt;
                              &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_SitePermissions"
                                  Text="&lt;%$Resources:wss,people_sitepermissions%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_sitepermissiondescriptionv4%&gt;"
                                  ImageUrl="/_layouts/images/Permissions32.png"
                                  MenuGroupId="300"
                                  Sequence="310"
                                  UseShortId="true"
                                  ClientOnClickNavigateUrl="~site/_layouts/user.aspx"
                                  PermissionsString="EnumeratePermissions"
                                  PermissionMode="Any" /&gt;
                              &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_Settings"
                                  Text="&lt;%$Resources:wss,settings_pagetitle%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_sitesettingsdescriptionv4%&gt;"
                                  ImageUrl="/_layouts/images/settingsIcon.png"
                                  MenuGroupId="300"
                                  Sequence="320"
                                  UseShortId="true"
                                  ClientOnClickNavigateUrl="~site/_layouts/settings.aspx"
                                  PermissionsString="EnumeratePermissions,ManageWeb,ManageSubwebs,AddAndCustomizePages,ApplyThemeAndBorder,ManageAlerts,ManageLists,ViewUsageData"
                                  PermissionMode="Any" /&gt;
                              &lt;SharePoint:MenuItemTemplate runat="server" id="MenuItem_CommitNewUI"
                                  Text="&lt;%$Resources:wss,siteactions_commitnewui%&gt;"
                                  Description="&lt;%$Resources:wss,siteactions_commitnewuidescription%&gt;"
                                  ImageUrl="/_layouts/images/visualupgradehh.png"
                                  MenuGroupId="300"
                                  Sequence="330"
                                  UseShortId="true"
                                  ClientOnClickScriptContainingPrefixedUrl="GoToPage('~site/_layouts/prjsetng.aspx')"
                                  PermissionsString="ManageWeb"
                                  PermissionMode="Any"
                                  ShowOnlyIfUIVersionConfigurationEnabled="true" /&gt;
                          &lt;/SharePoint:FeatureMenuTemplate&gt;
                          &lt;/CustomTemplate&gt;
                        &lt;/SharePoint:SiteActions&gt;&lt;/span&gt;
                  &lt;asp:ContentPlaceHolder id="PlaceHolderGlobalNavigation" runat="server"&gt;
                          &lt;SharePoint:PopoutMenu
                              runat="server"
                              ID="GlobalBreadCrumbNavPopout"
                              IconUrl="/_layouts/images/fgimg.png"
                              IconAlt="&lt;%$Resources:wss,master_breadcrumbIconAlt%&gt;"
                              IconOffsetX=0
                              IconOffsetY=112
                              IconWidth=16
                              IconHeight=16
                              AnchorCss="s4-breadcrumb-anchor"
                              AnchorOpenCss="s4-breadcrumb-anchor-open"
                              MenuCss="s4-breadcrumb-menu"&gt;
                              &lt;div class="s4-breadcrumb-top"&gt;
                                  &lt;asp:Label runat="server" CssClass="s4-breadcrumb-header" Text="&lt;%$Resources:wss,master_breadcrumbHeader%&gt;" /&gt;
                              &lt;/div&gt;
                              &lt;asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server"&gt;
                                  &lt;SharePoint:ListSiteMapPath
                                      runat="server"
                                      SiteMapProviders="SPSiteMapProvider,SPContentMapProvider"
                                      RenderCurrentNodeAsLink="false"
                                      PathSeparator=""
                                      CssClass="s4-breadcrumb"
                                      NodeStyle-CssClass="s4-breadcrumbNode"
                                      CurrentNodeStyle-CssClass="s4-breadcrumbCurrentNode"
                                      RootNodeStyle-CssClass="s4-breadcrumbRootNode"
                                      NodeImageOffsetX=0
                                      NodeImageOffsetY=353
                                      NodeImageWidth=16
                                      NodeImageHeight=16
                                      NodeImageUrl="/_layouts/images/fgimg.png"
                                      RTLNodeImageOffsetX=0
                                      RTLNodeImageOffsetY=376
                                      RTLNodeImageWidth=16
                                      RTLNodeImageHeight=16
                                      RTLNodeImageUrl="/_layouts/images/fgimg.png"
                                      HideInteriorRootNodes="true"
                                      SkipLinkText="" /&gt;
                                  &lt;/asp:ContentPlaceHolder&gt;
                          &lt;/SharePoint:PopoutMenu&gt;
                          &lt;div class="s4-die"&gt;
                              &lt;asp:ContentPlaceHolder id="PlaceHolderGlobalNavigationSiteMap" runat="server" Visible="false"&gt;
                              &lt;/asp:ContentPlaceHolder&gt;
                          &lt;/div&gt;
                  &lt;/asp:ContentPlaceHolder&gt;
                  &lt;SharePoint:PageStateActionButton id="PageStateActionButton" runat="server" Visible="false" /&gt;
              &lt;/SharePoint:SPRibbonPeripheralContent&gt;
              &lt;SharePoint:SPRibbonPeripheralContent
                  runat="server"
                  Location="TabRowRight"
                  ID="RibbonTabRowRight"
                  CssClass="s4-trc-container s4-notdlg"&gt;
      &lt;SharePoint:DelegateControl runat="server" ID="GlobalDelegate0" ControlId="GlobalSiteLink0" /&gt;
       &lt;a href="#" tabindex="-1" style="display:none"&gt;&lt;/a&gt;&lt;a href="#" tabindex="-1" style="display:none"&gt;&lt;/a&gt;
       &lt;div class="s4-trc-container-menu"&gt;
           &lt;div&gt;
              &lt;wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false"&gt;
              &lt;/wssuc:Welcome&gt;
              &lt;wssuc:MUISelector ID="IdMuiSelector" runat="server"/&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;SharePoint:DelegateControl ControlId="GlobalSiteLink2" ID="GlobalDelegate2" Scope="Farm" runat="server" /&gt;
      &lt;span&gt;
          &lt;span class="s4-devdashboard"&gt;
              &lt;Sharepoint:DeveloperDashboardLauncher
                  ID="DeveloperDashboardLauncher"
                  NavigateUrl="javascript:ToggleDeveloperDashboard()"
                  runat="server"
                  ImageUrl="/_layouts/images/fgimg.png"
                  Text="&lt;%$Resources:wss,multipages_launchdevdashalt_text%&gt;"
                  OffsetX=0
                  OffsetY=222
                  Height=16
                  Width=16 /&gt;
          &lt;/span&gt;
      &lt;/span&gt;
              &lt;/SharePoint:SPRibbonPeripheralContent&gt;
          &lt;/SharePoint:SPRibbon&gt;
      &lt;/div&gt;
      &lt;div id="notificationArea" class="s4-noti"&gt;
      &lt;/div&gt;
      &lt;asp:ContentPlaceHolder ID="SPNavigation" runat="server"&gt;
              &lt;SharePoint:DelegateControl runat="server" ControlId="PublishingConsole" Id="PublishingConsoleDelegate"&gt;
             &lt;/SharePoint:DelegateControl&gt;
      &lt;/asp:ContentPlaceHolder&gt;
      &lt;div id="WebPartAdderUpdatePanelContainer"&gt;
          &lt;asp:UpdatePanel
              ID="WebPartAdderUpdatePanel"
              UpdateMode="Conditional"
              ChildrenAsTriggers="false"
              runat="server"&gt;
              &lt;ContentTemplate&gt;
                  &lt;WebPartPages:WebPartAdder ID="WebPartAdder" runat="server"/&gt;
              &lt;/ContentTemplate&gt;
              &lt;Triggers&gt;
                  &lt;asp:PostBackTrigger ControlID="WebPartAdder" /&gt;
              &lt;/Triggers&gt;
          &lt;/asp:UpdatePanel&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>