New answers tagged

5

You can use ~sitecollection instead of ~Site <SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/awesome.css %>" runat="server" /> For html master page, it will be: <!--SPM:<SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/awesome.css %>" runat="server" />-->


0

Right now I am doing like this: <SharePoint:SPSecurityTrimmedControl PermissionsString="ViewPages" runat="server"> <link rel="stylesheet" type="text/css" href="https://sharepoint.com/web/SiteAssets/css-readonly.css" /> </SharePoint:SPSecurityTrimmedControl> <SharePoint:SPSecurityTrimmedControl PermissionsString="ManageWeb" ...


0

<SharePoint:SPSecurityTrimmedControl Permissions="whatever" runat="server"> <style type="text/css"> #some-element { display: block; } </style> </SharePoint:SPSecurityTrimmedControl> Is that what you're asking?


1

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.


1

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.


0

SharePoint site templates don't work that way. Think of a site template as a one-time set of instructions for creating a site. Once your site is created from the instructions, it has no association to the template that was used to creating it. So, to make modifications to all sites in a site collection you would need a PowerShell script, feature, or app ...


0

The white space occupied by is actually QuickLaunch area, you may update masterpage and remove quick launch snippet navigation, or if you can't edit masterpage, you may look through inspector of browser and add display none for the selector and give main content 100% width.


0

#sideNavBox {display: none;}#contentBox {margin-left: 20px;} add this css style and you can hide left site content. also make sure you are making changes in the selected master page.


0

They will not be different because the site was based on a team site template. Activating publishing will not change the template on which the site was originally built. Team Sites use system master page both for system pages such as "Site Settings" and for the main page. (See http://sp2013.blogspot.com/2013/07/sharepoint-branding-team-sites-inherit.html) ...


0

We want to exclude the contact us and privacy policy links in the navigation from our search results. How do we do that? It’s pretty simple actually. Just put the content that you do not want indexed in a div tag with a class of noindex. Let’s look at the complete HTML of the home page. <html> <head> <title>Super Neat Home ...


0

You can use the Sharepoint Designer to do this. Go to 'Master Pages', right click on your master page and click on 'Set as default Master Page'.


1

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 = ...


3

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 ...


0

You don't need to deal with master pages and layouts if all you are trying to do is create web part pages and add a script editor. All you need to do is use a browser and navigate to your Site Pages library(s), create a page, edit the page and add the script web part, add your script and save.


0

Number of things you can try here. Revert back to OOTB master page. If it fixes the issue, then obviously the problem is on the new master page. I don't think the problem is resolution. It could be the resolution of the picture, but it looks like all the buttons are disabled. If you are running in a regular IE window and the user has full access to the ...


1

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() ...


0

Maybe it is that simple: did you check if your script/css-files in the library are checked in and published (main version?). Anonymous user only see main/published versions, while you, as you have edit permissions, are allowed to see files in draft-mode too.



Top 50 recent answers are included