Tag Info

New answers tagged

0

You need to enable publishing features on the site collection (SP_Site) and on the web (SP_Web) and set the alternate CSS URL to your css-file. Find "Site Collection Features" setting and enable all features with name "publishing" in it. Find "Manage Site Features" setting and enable all feature with name "publishing" in it. Find "Master Page" ...


4

Here’s the code you should put on your pages: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script type="text/javascript" src="http://path to the script/StickyHeaders_v2.9BETA.js"></script> You can download StickyHeaders_v2.9BETA.js from here


1

You need to escape periods in your IDs. So your code would be something like this. #Ribbon\.EditingTools\.CPInsert.ms-cui-tabBody { height:78px!important; background-color:green; }


1

Considering you are not interested in the whole document library VS mapped folder discussion, I believe that the main reason for placing branding elements (aka CSS) in the "Styles" mapped folder, instead of the parent, "Layouts" is mainly when you want to use the Themable engine. Whether you want to host your resources in a site or directly reference them ...


0

The answer, as always, is it depends. The first thing to consider is scope. Where are these files going to be used? If they are going to be used farm-wide then it makes most sense to deploy them to the _layouts folder. If they need to be visible at the site collection level then style library or site assets makes sense. You also need to consider whether ...


0

To me, it depends on what you are doing. If you are deploying a branding feature, then I would deploy it to the file system. This way you don't have hundreds of copies of your CSS and JS files lingering around. One place, easier to update should changes be necessary. If the feature is site or site collection scoped, than I tend to do the style library or an ...


5

I guess you could always use a site collection token in your URL. ~sitecollection URLs and tokens in SharePoint 2013 If that don't work out for you, this blog post has a lot of great examples when working with masterpages and references. Use Site Url in SharePoint Update Try using a scriptlink instead. I'm unsure if encoding is needed thought. Try to ...


2

If you use file system then during system backup those files will not get backed up. This is the same case with system migration. All files in file system needs to be moved separately. On the other hand if you use libraries then those files will be placed in the content database and will be included in backup as well as system upgrade etc. If you place ...


0

How about something like this #s4-titlerow { margin-top: 0px; height: 50px; background-color: #DBDCDE; padding-top: 19px; padding-bottom: 28px; position: fixed; width: 100%; margin-bottom: 0px; z-index: 1; top:65px; } #s4-workspace { margin-top: 97px; }


0

I assume you are using the CSS to just customize the branding of the left navigation. If so, you will be able to apply it for all application pages by simply adding the custom CSS to the current masterpage for those pages and making sure you are overriding the sharepoint left menu navigation control styles through your custom CSS. Here are some good ...


0

The mobile view is using the same page layouts. You can check how your page looks on a mobile device by adding ?mobile=1 behind the page url.


0

I used YUI Compressor for .Net. you can bundle/compress css/js files in a post build commando.


2

How about using the WebEssentials Extension. Bundling and minifying is just one feature you would get out of it. Others are: A lot of compilers and linters for CSS/JS. Additional Debugging functionality Bundling via XML (CSS/JS/Sprites) Better Intellisense and a lot more just check their homepage Btw. these Tools are added in VS2015 by default and are ...


1

In the past, I had used the AJAX minifier, http://ajaxmin.codeplex.com/, to bundle and minify my JS and CSS fiels as part of a build action. It worked well. In the end though, I stopped doing it as I wasn't deploying a lot of JS and CSS files. It made real time troubleshooting more difficult and added unneeded complexity to the application, for very ...


2

I have been using Mavention minifier tool. It is working as expected and you can apply this on the particular files that you wanted. MaventionMinifiedCssFileGenerator - for minifying CSS files MaventionMinifiedJsFileGenerator - for minifying JavaScript files MaventionObfuscatedJsFileGenerator - for minifying and obfuscating JavaScript files are the ...


2

I had the same issue and as you said none of the CSS of Script did work for me as well. So I have to patch something with below script. This should be considered as a last option if you have any other solution available. So if you try this, you will have your issue fixed with below script: var interval = null; //Defines the start interval variable ...


0

And for the Red background problem I would try 4 places: First, Navigate to the Edit page in IE and use Developer Tools; click HTML tab on left of screen, then Style on the right. Alternately, Open Master Page in SharePoint Designer; look for any reference to CSS files or CSS code. Open any custom CSS files you find in SPD and check. Open your Edit page ...


0

you can give the address of your required sp list in every link as shown below <li><a href="http://google.com" target="_blank">The Team</a></li> <li><a href="http://rediffmail.com" target=' _blank">History</a></li>



Top 50 recent answers are included