Uncategorized

SharePoint 2013 Master Page CSS & JS code snippets

Use the below code snippet for CSS and JS in html design file

CSS

<!–SPM:<SharePoint:CssRegistration ID=”BootstrapCss” Name=”&lt;%$SPUrl:~siteCollection/Style Library/Custom/masterpage/css/bootstrap.min.css%&gt;” runat=”server”/>–>

JS
<!–SPM:<SharePoint:ScriptLink runat=”server” ID=”BootstrapJS” Language=”javascript” Name=”~siteCollection/Style Library/Custom/masterpage/js/bootstrap.min.js” />–>

Useful links

http://yakovenkomax.com/cssregistration-and-scriptlink-done-the-right-way/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s