Assets

All builded files are placed inside wwwroot/assetsfolder and you can include your static js, css and media files in wwwrootfolder then these files can be loaded globally or separately for your views.

Add Javascript File:

KTTheme.addJavascriptFile("/assets/js/custom/intro.js");

Add Css Files:

KTTheme.addCssFile("/assets/css/custom/intro.css");

Add Vendors:

KTTheme.addVendors(new string[] {"datatables", "formrepeater"});

Add Vendor File:

KTTheme.addVendor("datatables");

Global files can be added inside _keenthemes/BootstrapBase.cs.

KTTheme.addVendor("datatables");
KTTheme.addJavascriptFile("/assets/js/custom/intro.js");
KTTheme.addVendors(new string[] {"datatables", "formrepeater"});

You can load a file for separate view inside your page view razor file.

@{
  KTTheme.addJavascriptFile("/js/site.js");
}
Learn & Get Inspired

Support at devs.keenthemes.com

Join our developers community to find answer to your question and help others. FAQs
Get Support
HTML Video Tutorials
From guides and how-tos, to live demos and code examples to get started right away.
Metronic Downloads
Download your prefered framework and demo with one click.
What's New ?
Latest features and improvements added with our users feedback in mind.
Buy now