Tag Info

Hot answers tagged

7

Hardcoding is never a nice solution! Look in to the SuiteBarBrandingDelegate control: Elements.xml: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!-- SuiteBarBrandingDelegate (the top-left "SharePoint" text on a page) --> <Control ...


6

You can copy any of the existing MasterPage's html file (I hope you have already figured that out) and go to Site Settings -> Design Manager -> Edit Master Page Now click your copied MasterPage and at the top-right you can see Snippets.. This is newly introduced in SharePoint 2013 and further explained here Now if you click Search Box, this will give you ...


6

I'm afraid there is no better solution than to use CSS: To fix the icon in the left corner via CSS is pretty much straight forward because it's no icon is just a character out of the Office 365 icon font. #O365_MainLink_NavMenu{ color: lime; } The small css will turn the icons into lime. (OK it doesn't look nice but shows perfectly how they are ...


5

You can try this solution: Open your site in SharePoint Designer, check out and open the default masterpage in advanced mode (assume it is seattle.master). Scroll down to ending </body> tag. Add the following block of code above: <SharePoint:ScriptBlock runat="server"> if (typeof jQuery == 'undefined') { document.write('<script ...


4

If you don't apply any particular style to a table inserted in a CEWP, it'll get applied the class ms-rteTable-default. So, instead of what you have done, you can override -in your custom css file- that class: .ms-rteTable-default{ -ms-name:"Tabell - test"; border:1px solid $borderColor; // sass syntax margin: 8px 0; width:98%; } Just make ...


3

b. You can remove this in Master page: <SharePoint:DelegateControl id="ID_SuiteBarBrandingDelegate" ControlId="SuiteBarBrandingDelegate" runat="server"/> Instead paste needed text. Use Microsoft Sharepoint Designer to do this.


3

Your custom master page should NOT be residing in LAYOUTS directories, but instead to inside of a custom feature destined to "GhostableInLibrary". The reason being the performance and the fact that file itself will not be stored in the content database, and hence SharePoint will continue to use a cached copy of the file from the file system until it has been ...


3

You can assign a master page in the layouts folder programmatically to a site (SPWeb). In PowerShell it would look something like: $site = Get-SPSite "http://yoursitecollection" foreach ($web in $site.AllWebs) { $web.MasterUrl = "/_layouts/15/yourfolder/themaster.master" $web.CustomMasterUrl = "/_layouts/15/yourfolder/themaster.master" ...


3

Best Practice is to not do it - as Microsoft doesn't support it. "In SharePoint 2013 you cannot uninstall an imported design package, and you should never attempt to deactivate a design package through the solution gallery. If you do, page layout content types are removed and users may not be able to create subsites" Reference: ...


3

Actually the AdditionalPageHead delegate control is the way to go. To keep things simple I've wrapped the below code into the ASCX, but it would be better suited in an assembly deployed to the GAC. <%@ Control Language="C#" compilationMode="Always" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" ...


3

In SharePoint the "page" is actually inside of a DIV and the window really never scrolls... The content inside that DIV does scrolls (unless you have a customized branded site). So although your code will work on a standalone HTML page, it will not in a standard Sharepoint site (2010 and above)... See the solution I posted here to a similar question. ...


3

Styling using classes is usually the preferred way. Especially if you see IDs in HTML in ASP.NET control format, like "ctl00_ContentPlaceHolder1_CustomUserControl1_NestedExampleLabel", you should absolutely not bind styles to those ID's as they may change, even within the same environment, as controls get added/removed from the page. If you have control ...


2

If I where you, I would try to ignore that warning and replace <div class="ms-rtestate-field">Page Content field value. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ...


2

Two things; firstly, you're not creating a page based on a masterpage. The masterpage is set at the web level, not at the page level. What you're likely seeing is that the page layout you're using for the page doesn't contain any editable regions within SharePoint Designer, thus it wants you to put it into edit mode. Most of the time you're going to create a ...


2

If this is part of a page layout, you can have a separate stylesheet for edit mode that relaxes your fixed width or removes your branding altogether to make it easier to modify web part properties. You would use an EditModePanel. I've done things like this in page layouts: <asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" ...


2

That is pretty much the options or manually apply it via powershell etc You are using the SharePoint 2010, you can think about the sandbox solutions using event handler named WebProvisioned. Deploying Branding Solutions for SharePoint 2010 Sites using Sandboxed Solutions Most of the objects in a site are included and supported by the template. There are a ...


2

Before considering using a third party tool, think about how often you will use it and if it's worth the additional risks of a third party framework. Not to mention that it will likely add unused code to the SP which will have an impact on the performance. If you only want a few layouts just do them yourself - it took me a few seconds to alter yours for a ...


2

You can type the url directly for lists folder : https://abc.com/Lists/ListName/NewForm.aspx?RootFolder=RootListName&Type=1&IsDlg=1 Type below url for Document Library folder: https://abc.com/DocumentlibraryName/Forms/Upload.aspx?RootFolder=%2fDocumentLibraryName&Type=1&IsDlg=1


2

This should be possible using AdditionalPageHead delegate control, That we we can avoid editing master Page


2

I think that the best approach in this case is create an app-part which will display your page and add it to a page on your host-web.


2

Branding in SharePoint The best way is to look at some youtube clips or tutorials http://blog.blksthl.com/2013/02/26/a-guide-to-quick-sharepoint-2013-branding/ You could make an composed look. see link below : https://www.nothingbutsharepoint.com/sites/eusp/Pages/Step-by-Step-Create-a-SharePoint-2013-Composed-Look.aspx You can try with this style in ...


2

In the latest version (16.0.3104.1200) of SharePoint Online Client Components SDK available for download currently, Web object exposes AlternateCssUrl and SiteLogoUrl properties: using (var context = new ClientContext(webUri)) { var web = context.Web; web.AlternateCssUrl = web.ServerRelativeUrl + "/SiteAssets/contoso.css"; web.SiteLogoUrl ...


1

you can change the default FAVICON.ICO in the layouts folder, but that will be for the whole farm c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\IMAGES Another option is to script it (function() { var link = document.createElement('link'); link.type = 'image/x-icon'; link.rel = 'shortcut icon'; link.href ...


1

After a while I discovered that just editing (adding a space) to the master page in SharePoint Designer fixed it. I then copied the resulting saved SharePoint Designer master page back into my solution and deployed that and it worked fine. Comparing the two files, the master page that had been provided to me originally had some extra attributes in the ...


1

If you like to read more on basics how to set up a grid system that matches your requirements I can recommend you the following link: All about floats on CSS Tricks Don't overthink it grids on CSS Tricks I think with these two basic articles you can full fill your requirement.


1

You're on the right track using divs instead of tables. Tables should really only be used for true tabular data anymore, and using them for layout purposes is basically considered a hack. To achieve the grid model you're looking for, I'd recommend you reference a third party grid system. There's tons to choose from, and including a third party grid CSS is a ...


1

The style is most probably being overridden by SharePoint on load. Use the !important tag in the CSS. You will need to use custom CSS, therefore you most probably will need to load in via a custom masterpage + css file. To get the whole wdith, don't set to 510px, set to 100%. Also ensure the path to 'blah.jpg' is correct. Your style override was close - it ...


1

Thank you for the suggestion. I finally found the solution and all I needed to do was add my site to the Trusted Sites section in IE's Internet Options. I did this via global policy and it's now showing up on all my computers in IE.


1

At the moment, you would need to use jQuery. However, the Suite Bar in SPO has changed numerous times, so be prepared to make changes in response to those changes. The ability to customize the Suite Bar has been suggested in UserVoice. I suggest you add your vote there.


1

Try the following CSS, worked for me: <style> .ms-acal-rootdiv { margin-left: -8px; } .ms-acal-summary-dayrow > th { border-bottom: none; border-top: none; } </style>



Only top voted, non community-wiki answers of a minimum length are eligible