Hot answers tagged master-page
You should be able to insert your HTML code in a copy of the default master page you are already using, download it locally and and then publish it and set it as masterpage for your sites using O365 dev PnP Powershell cmdlts. As i'm not using O365 myself i haven't been able to try it out but should be doable. OfficeDevPnP.PowerShell Commands There are ...
To list all master pages: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue; Get-SPWebApplication | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL, MasterUrl To download a specific file / master page: $fromsite = "<your sp url>" $fromfile = "/_catalogs/masterpage/seattle.master" $tofile = ...
To change the icon URL for a subsite, change the Logo URL property in the subsite's > site settings > Title, Description and Icon page. Just remember that the users of the subsite must also have read permissions to the place where you store the image.
If your trying to change the URL to point to another page but keep the same logo. You can go to the URL page you want and select and in the page ribbon select Make Homepage from the Page Actions. This will change the URL the logo leads to for your subsite.
I found I needed to add it, check it out, call update, check it in and publish it. So: $web = Get-SPWeb $site $folder = $web.getfolder("_catalogs/masterpage") $files = $folder.Files $mPage = Get-Item "C:\path to your\masterpage.html" $file = $files.Add("masterpage.html", $mPage.OpenRead(), $true) $file.CheckOut() ...
Only top voted, non community-wiki answers of a minimum length are eligible