Quantcast
Channel: SharePoint Diary
Viewing all articles
Browse latest Browse all 1058

Set Default Home Page in SharePoint 2013

$
0
0
Its a common requirement in SharePoint 2013 to change its home page to some customized ones. In SharePoint 2013, to set homepage these options are available:

Change default home page on SharePoint 2013 Team sites:
  •  Navigate to your desired page
  • Click on "Page" tab, Click on "Make Homepage" button from the ribbon.
    sharepoint 2013 set homepage
  • Confirm to the "If you make this page the home page for this site, users will no longer be able to see the old site home page. Do you want to set this page as this site's home page?" message box.
    sharepoint 2013 default home page
  • Done!

SharePoint 2013 set default home page on Publishing sites:
The above method works for Publishing sites also. However, there is an another method too!
  • Navigate to site settings >> Click on "Welcome Page"
    link under "Look and Feel" sectionsharepoint 2013 change home page
  • Enter the home page URL either directly or by Clicking on "Browse" button and choosing the right page.
    sharepoint 2013 default home page
  • Click on "Ok" to save your changes.
Using SharePoint Designer to to change home page in SharePoint 2013
To change home page in SharePoint 2013 with SharePoint designer, follow these steps:
  • Navigate to "Site Pages" library, or any other library where your target page exists
  • Right click on the page and choose "Set as Home page" menu item from the context menu. Alternatively, you can use the Ribbon button also as highlighted.
    sharepoint 2013 edit home page
Set home page programmatically in SharePoint 2013:
If you want to set home page programmatically, Here is the code:

Change Home page using PowerShell:
Add-PSSnapin Microsoft.SharePoint.PowerShell –ErrorAction SilentlyContinue

#Variables
$WebURL="http://intranet.crescent.com"
$HomePageURL="SitePages/default.aspx"

#Get the Web
$web = Get-SPWeb $WebURL

#Change Welcome page
$RootFolder = $Web.RootFolder
$RootFolder.WelcomePage = $HomePageURL
$RootFolder.Update()

$web.Dispose()

Related post: How to Set Welcome Page Programmatically in SharePoint

Viewing all articles
Browse latest Browse all 1058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>