Tag Info

Hot answers tagged

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

Well, the best we can do is provide comparisons, and you will need to make the determination based on what you are trying to accomplish. You could obviously do a combination of both, have device channels and on the respective master pages (add responsive design principles). Comparisons Device Channels Device Management Uses the identity of ...


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


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

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

OneDrive is different with MySites. Unless you were referring to OneDrive for business which is the same with MySites OneDrive for Business uses a platform called SharePoint to give each member of your team a place to store and work on documents with others. Because it uses SharePoint it also provides more administration option for working with documents. ...


3

I'd use CSS based on viewport width. That way you'd have only three CSS files to edit and you'd get a more manageable solution. The only change needed in the master page would be the following just before the closing head tag: <link type="text/css" rel="stylesheet" media="only screen and (min-width: 1024px)" href="/css/desktop.css" /> <link ...


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

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

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


2

Branding in SharePoint The best way is to look at some youtube clips or tutorials. A guide to quick SharePoint 2013 branding You could make an composed look. See this link. You can try with this style in either your master page or a css file: div#suiteBarLeft{ background-color: red; } or .s4-ribbonrow { color:purple!important; } How to ...


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

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

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


2

In general, "My site" is a very poor term. Here are the terms that I typically use: "My Site Host" site collection. This is typically a single site collection that can allow all users to see "About Me" and allow functions such as "People Search". This site collection can exist without a single "Personal site" and without "One Drive For business libraries". ...


2

You just need to create a new search display template. The essential steps are: Copy an existing template Rename the template file Change the look and feel as you need Copy the file back to the Display Templates library Create a result type rule for your content All of this is detailed here: ...


2

Kareem, Browse to Site Settings page of the subsite and click on the "Master Page" under "Look and feel" section. Select "Specify a master page to be used by this site and all sites that inherit from it:" Select the master page from the dropdown shown in the following screen grab Let me know if you have any questions


1

What you're seeing is correct url (a subsite). From your debug image, it looks like you have apps. Apps in SP 2013 get their own site where the naming convention is ' https://domain-XXXXXXXXXXXXXXXXXX.sharepoint.com/sites/site1/subsite1' To exclude the app sites (example): while (webEnumerator.moveNext()) { var newweb = webEnumerator.get_current(); ...


1

You can use the AlternateCSS property on each site. Which can be set by code or manually but you need to have the publishing feature turned on in order to make it work.


1

HTML5 is newer than these versons of Internet explorer so it is not supported. Not fully anyway. You may want to use Javascript libraries to enable support for older browsers like HTML5shiv at https://github.com/aFarkas/html5shiv/ You may also want to take a look at http://www.sitepoint.com/html5-older-browsers-and-the-shiv/ Depending on your master page ...


1

I suggest investigating JSLink to see if that will do what you want. You can take a standard list table and using JSLink provide custom Client Side rendering. My suggested resource list includes: http://msdn.microsoft.com/en-us/magazine/dn745867.aspx https://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a ...


1

Step 1: Get SharePoint collection path. Log in as an administrator at your site collection. (VERY IMPORTANT! to mark the "remember me" checkbox before pressing Login button). Go to site settings -> Design manager -> upload designfiles and copy the linkadress that's in there. Step2: Map network drive Go to File explorer on your computer and rightclick on ...


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

I'll weigh in on this as others have so just restating what some others have posted and why. For years I've been using the StyleLibrary. The reasons to me are obvious and simple: The StyleLibrary document library is there, out-of-the-box and in every site (except blank sites) It let's me create one per site collection so I can use different ...



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