Tag Info

New answers tagged

0

I've had this problem before and never explored a solution until now. Don't use the script editor, instead just open the view aspx within SharePoint Designer and in 'PlaceHolderAdditionalPageHead' you can add your script without loosing the ribbon. Tested in SP 2013 on AllItems.aspx <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" ...


7

you can use sprite cow to generate your css http://www.spritecow.com/


3

try <SharePoint:CSSRegistration ID="CSSReg5" name="<%$SPUrl:~SiteCollection/Style Library/CSS/styles.css%>" After="corev4.css" runat="server"/> the part <%$SPUrl:~SiteCollection points to the root site collection, maybe your code is not pointing to that location! rather the site or sub site, method above explicitly says root site collection ...


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


0

Once I upgraded to SharePoint 2013, I saw the same issue occuring with a SINGLE Web Part Zone. My solution should probably work with SharePont 2010 as well. To reproduce the problem in SharePoint 2013: Create a page. Add a list to the page. Edit the web part and change the view. The list is displayed, but there is a small amount of space above the list. ...


1

I would say the style library is a good place to store css files. The reference itself depends on how to you want to have the scope of the changes. If you are okay with having a global site reference, use the masterpage or the alternatecss property in site settings, masterpage section. if you want to narrow down the scope, you can add it at the page ...


1

In SP2013 you can define a custom ccs file to be linked to your masterpage on your root site via Site Settings => Look and Feel => Masterpage => Alternate CCS URL => Specify a CSS file to be used by this site and all sites that inherit from it. Click 'Browse' to insert the path to your css file (best location to store it would be the list 'Style Library').


0

We solved this by using an HTTP module scanning the DOM for anchor tags and using a regular expression to check if they are external or not (I think our comparison was something like, if the link contains HTTP then we assumed external). The http module would then apply a class to the anchor tag. Not sure if there is a way to do this with plain CSS. ...


1

use CSS to alter appearances, that way it will affect all views. Manually editing the view is not the way to do this unless you want to be repeating yourself.


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>


0

You can add a Content Editor WebPart and design your Title from Scratch. Click here for how to add Content Editor WebPart You can also Give a title to Search Results WebPart. For this just Edit the WebPart Under Title section give a new Title and Choose Title in Chrome type property of WebPart. For your Second Question: Their is no OOB way to achieve ...


0

Applying the CSS class s4-notdlg to all HTML elements of your custom masterpage you want to hide should do the trick.


0

Sorry I can't post code right now, but if you are still having a problem next week, I'll post back. I created a plugin awhile back to do this: make elements sticky. It supports sharepoint and I'm currently using it in SP2013 (o365) with a few small apps. The plugin is: http://purtuga.github.io/jquery.stickOnScroll/ You will need to use the set the ...


1

The relationship between .html and .master is a bridge. It has been implemented so that developers who are not familiar with ASP.NET masterpages and SharePoint can use the .html file to do the changes in a "environment" they are more or less familiar with. I'm going to assume this is an on-premise solution, so yes, downloading and putting the .js file in ...


1

Give that you are not using a sandboxed solution, you can use a Delegate Control, specifically the AdditionalPageHeadDelegate: You nee to create an ASP.Net Control (ascx file) where you will add the script and css references to the markup Add a feature, and scope it to Web Application Add an empty Elements.xml file to the feature ("Empty element" in the ...


0

I know I'm late to the party, but have you tried to remove body #s4-ribbobrow { min-height: 43px; } from the SharePointDefaultStylesCOREV4.css


0

I know I'm late on this, but it looks like you're using the wrong element ID. Try this: document.getElementById("ctl00_onetidHeadbnnr2").src="http://path/to/image.png";


0

I tried to generate same scenario, With following piece of code change I can see the text now <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script ...


1

You can use the following PowerShell script to register your custom CSS file. It will run regardless of the master page used: $web = Get-SPWeb http://myserver/mysite $web.AlternateCssUrl = "/Style Library/MyStyles.css" $web.Update() Just tested it on my SharePoint 2010 Server virtual test machine and it works like a champ, even with the Excel Web Access ...


1

I don't believe there is a "best" place for custom CSS. It depends on what are your options, really. Microsoft tends to tell you to create CSS files in the Style Library of the root site (based on the many customization tutorials they have). If you can/need to deploy a solution, you can use the hive and unghost them if you need using SharePoint Designer ...


0

Option 1 You are not supposed to edit the default styles in Hive folder (Never go for Option 3)


0

dont change anything from ms! best to overwrite it! 1) is for global css change! 2) is for specified page changes! 3) just dont do! if you want to change the styles of the ribbon and colour ect throughout all sites and pages than 1 is your best bet. layout pages are master pages other half. think of masterpage is the outer layer than contains ...


0

Any manual changes to out of the box files in 12/14/15 folders are NOT recommended and will be reverted, in case of upgrades and patches. If you really want to change the default classes SharePoint adds to the pages, use jQuery to get over it :) I'm not a design guru but sometimes!important attribute can be of great help. Go figure :)



Top 50 recent answers are included