Documentation v3.6.2
If you have any questions that are beyond the scope of this help file, please email our support support@keenthemes.com.
Table of Contents: |
All template files have fixed structure consisting of pre-header
, header-navigation
, page-slider
, main
and pre-footer
as shown below:
Below code is used at the beginning of all HTML pages to detect Internet Explorer browser version and set a spesific class applied to Internet Explorer versions.
<!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
Page head contains metadata, javascript and css files:
<!-- Head BEGIN --> <head> <meta charset="utf-8"> <title>Metronic Shop UI</title> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta content="Metronic Shop UI description" name="description"> <meta content="Metronic Shop UI keywords" name="keywords"> <meta content="keenthemes" name="author"> <meta property="og:site_name" content="-CUSTOMER VALUE-"> <meta property="og:title" content="-CUSTOMER VALUE-"> <meta property="og:description" content="-CUSTOMER VALUE-"> <meta property="og:type" content="website"> <meta property="og:image" content="-CUSTOMER VALUE-"><!-- link to image for socio --> <meta property="og:url" content="-CUSTOMER VALUE-"> <link rel="shortcut icon" href="favicon.ico"> <link href="/favicon.ico" rel="SHORTCUT ICON" type="image/ico"> <!-- Fonts START --> <link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|PT+Sans+Narrow|Source+Sans+Pro:200,300,400,600,700,900&subset=all" rel="stylesheet" type="text/css"> <link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900&subset=all" rel="stylesheet" type="text/css"><!--- fonts for slider on the index page --> <!-- Fonts END --> <!-- Global styles START --> <link href="../../assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <link href="../../assets/global/plugins/bootstrap/css/bootstrap.css" rel="stylesheet"> <!-- Global styles END --> <!-- Page level plugin styles START --> <link href="../../assets/global/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet"> <link href="../../assets/global/plugins/carousel-owl-carousel/owl-carousel/owl.carousel.css" rel="stylesheet"> <link href="../../assets/global/plugins/slider-layer-slider/css/layerslider.css" rel="stylesheet"> <!-- Page level plugin styles END --> <!-- Theme styles START --> <link href="../../assets/global/css/components.css" rel="stylesheet"> <link href="../../assets/frontend/layout/css/style.css" rel="stylesheet"> <link href="../../assets/frontend/pages/css/style-shop.css" rel="stylesheet" type="text/css"> <link href="../../assets/frontend/pages/css/style-layer-slider.css" rel="stylesheet"><!-- metronic layer slider styles --> <link href="../../assets/frontend/layout/css/style-responsive.css" rel="stylesheet"> <link href="../../assets/frontend/layout/css/custom.css" rel="stylesheet"> <!-- Theme styles END --> </head> <!-- Head END -->
Header contains of logo and top menu bar and it used in all pages. HTML code of header container shown below:
<div class="pre-header"> <div class="container"> <div class="row"> <!-- BEGIN TOP BAR LEFT PART --> <div class="col-md-6 col-sm-6 additional-shop-info"> <ul class="list-unstyled list-inline"> </ul> </div> <!-- END TOP BAR LEFT PART --> <!-- BEGIN TOP BAR MENU --> <div class="col-md-6 col-sm-6 additional-nav"> <ul class="list-unstyled list-inline pull-right"> </ul> </div> <!-- END TOP BAR MENU --> </div> </div> </div>
Header contains of logo and top menu bar and it used in all pages. HTML code of header container shown below:
<!-- BEGIN NAVIGATION --> <div class="header-navigation"> <ul> <li class="dropdown"> </li> <li class="dropdown dropdown-megamenu"> </li> <!-- BEGIN TOP SEARCH --> <li class="menu-search"> </li> <!-- END TOP SEARCH --> </ul> </div> <!-- END NAVIGATION -->
Layer Slider
<div class="page-slider margin-bottom-35"> <!--LayerSlider begin--> <div id="layerslider" style="width: 100%; height: 494px; margin: 0 auto;"> </div> <!--LayerSlider end--> </div>
Content consists of page title, breadcrumbs and page's main body. HTML code of Content container as shown below:
<div class="main"> <div class="container"> </div> </div>
<!-- BEGIN PRE-FOOTER --> <div class="pre-footer"> <div class="container"> </div> </div> <!-- END PRE-FOOTER --> <!-- BEGIN FOOTER --> <div class="footer padding-top-15"> <div class="container"> </div> </div> <!-- END FOOTER -->
Javascript files loaded in the end of page. This will reduce page load time.
<!-- Load javascripts at bottom, this will reduce page load time --> <!-- BEGIN CORE PLUGINS (REQUIRED FOR ALL PAGES) --> <!--[if lt IE 9]> <script src="assets/plugins/respond.min.js"></script> <![endif]--> <script src="../../assets/global/plugins/jquery-1.11.0.min.js" type="text/javascript"></script> <script src="../../assets/global/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script> <script src="../../assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script src="../../assets/frontend/layout/scripts/back-to-top.js" type="text/javascript"></script> <script src="../../assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script> <!-- END CORE PLUGINS --> <!-- BEGIN PAGE LEVEL JAVASCRIPTS (REQUIRED ONLY FOR CURRENT PAGE) --> <script src="../../assets/global/plugins/fancybox/source/jquery.fancybox.pack.js" type="text/javascript"></script><!-- pop up --> <script src="../../assets/global/plugins/carousel-owl-carousel/owl-carousel/owl.carousel.min.js" type="text/javascript"></script><!-- slider for products --> <script src='../../assets/global/plugins/zoom/jquery.zoom.min.js' type="text/javascript"></script><!-- product zoom --> <script src="../../assets/global/plugins/bootstrap-touchspin/bootstrap.touchspin.js" type="text/javascript"></script><!-- Quantity --> <!-- BEGIN LayerSlider --> <script src="../../assets/global/plugins/slider-layer-slider/js/greensock.js" type="text/javascript"></script><!-- External libraries: GreenSock --> <script src="../../assets/global/plugins/slider-layer-slider/js/layerslider.transitions.js" type="text/javascript"></script><!-- LayerSlider script files --> <script src="../../assets/global/plugins/slider-layer-slider/js/layerslider.kreaturamedia.jquery.js" type="text/javascript"></script><!-- LayerSlider script files --> <script src="../../assets/frontend/pages/scripts/layerslider-init.js" type="text/javascript"></script> <!-- END LayerSlider --> <script src="../../assets/frontend/layout/scripts/layout.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function() { Layout.init(); Layout.initOWL(); LayersliderInit.initLayerSlider(); Layout.initImageZoom(); Layout.initTouchspin(); Layout.initTwitter(); }); </script> <!-- END PAGE LEVEL JAVASCRIPTS -->
All the html, css and javascript file contents have easy to refer and meaningful comments:
<!-- BEGIN TOP BAR MENU --> <div class="col-md-6 col-sm-6 additional-nav"> <ul class="list-unstyled list-inline pull-right"> </ul> </div> <!-- END TOP BAR MENU -->
/********************* GENERAL RESET & SETUP *********************/ /*** General typography ***/ h1, h2, h3, h4, h5, h6 { font: 23px 'PT Sans Narrow', sans-serif; text-transform: uppercase; margin-bottom: 10px; margin-top: 0; }
Metronic uses Open Sans font from google fonts. The font imported in main css file: assets/css/style.css
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=all" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=all' rel='stylesheet' type='text/css'>
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900&subset=all" rel="stylesheet" type="text/css">
Core javascript initialization implemented in assets/frontend/layout/scripts/layout.js
thorugh Layout object as shown below.
This approach enables an easy modular implementation to initialize jquery plugins and other application logics.
var Layout = function () { var localVariable; //local variable var sampleFunction = function() { //sample function code } return { //main method to initiate template pages init: function () { sampleFunction() // call local function }, //sample method declaration sampleMethod: function (test) { alert(test); } }; }();
assets/frontend/layout/scripts/layout.js
Below will be listed all handler functons implemented in layout object:
Fix html5 placeholder attribute for ie7 & ie8.
Bootstrap plugins initialization.
Handle Scroller
Show/hide ssearchbar
Set Theme Color
To overide the theme CSS styles you can use assets/frontend/layout/css/custom.css
for your own customization. This will make the future updates easier if you keep your own CSS code seperate.
Metronic eCommerce Frontend based on Twitter Bootstrap
<link href="assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script src="assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
A mobile and touch friendly input spinner component for Bootstrap 3. It supports the mousewheel and the up/down keys.
<script src="assets/global/plugins/bootstrap-touchspin/bootstrap.touchspin.js" type="text/javascript"></script>
Fully loaded, responsive content slider
<link href="../../assets/global/plugins/carousel-owl-carousel/owl-carousel/owl.carousel.css" rel="stylesheet">
<script src="../../assets/global/plugins/carousel-owl-carousel/owl-carousel/owl.carousel.min.js" type="text/javascript"></script><!-- slider for products -->
FancyBox is a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages.
<link href="assets/global/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet" />
<script type="text/javascript" src="assets/global/plugins/fancybox/source/jquery.fancybox.pack.js"></script>
The iconic font designed for use with Twitter Bootstrap
<link href="assets/global/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" />
GMaps.js allows you to use the potential of Google Maps in a simple way. No more extensive documentation or large amount of code.
No CSS file
<script src="assets/global/plugins/gmaps/gmaps.js" type="text/javascript"></script>
LayerSlider is a premium multi-purpose slider for creating image galleries, content sliders, and mind-blowing slideshows with must-see effects
<link rel="stylesheet" href="assets/global/plugins/layerslider/css/layerslider.css" type="text/css">
<script src="assets/global/plugins/layerslider/jQuery/jquery-easing-1.3.js" type="text/javascript"></script> <script src="assets/global/plugins/layerslider/jQuery/jquery-transit-modified.js" type="text/javascript"></script> <script src="assets/global/plugins/layerslider/js/layerslider.transitions.js" type="text/javascript"></script> <script src="assets/global/plugins/layerslider/js/layerslider.kreaturamedia.jquery.js" type="text/javascript"></script>
Please kindly find documentation for Layer Slider in downloaded pack
Rating plugin for jQuery.
<link href="assets/global/plugins/rateit/src/rateit.css" rel="stylesheet" type="text/css">
<script src="assets/global/plugins/rateit/src/jquery.rateit.js" type="text/javascript"></script>
Set the range option to true to capture a range of values with two drag handles. The space between the handles is filled with a different background color to indicate those values are selected.
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
Minimalistic form elements with jQuery
<link href="assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
<link href="assets/global/plugins/uniform/jquery.uniform.min.js" rel="stylesheet" type="text/css"/>
A plugin to enlarge images on touch, click, or mouseover.
<script type="text/javascript" src='assets/global/plugins/zoom/jquery.zoom.min.js'></script>
Metornic uses Open Sans web font from google fonts: http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=all" rel="stylesheet" type="text/css">
Metornic uses Open Sans web font from google fonts: http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700
<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=all' rel='stylesheet' type='text/css'>
Metornic uses Open Sans web font from google fonts: http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900&subset=all" rel="stylesheet" type="text/css">
Below is the list of all plugins and external resources used to power this template.
Name | Description | URL |
---|---|---|
jQuery 1.11.2 | Core Javascript library | http://www.jquery.com |
Twitter Bootstrap v3.3.2 | Sleek, intuitive, and powerful front-end framework for faster and easier web development | http://getbootstrap.com |
Bootstrap Touchspin | A mobile and touch friendly input spinner component for Bootstrap 3. It supports the mousewheel and the up/down keys. | http://www.virtuosoft.eu/code/bootstrap-touchspin/ |
Bxslider | Fully loaded, responsive content slider | http://bxslider.com |
FancyBox | FancyBox is a tool for displaying images, html content and multi-media | http://fancybox.net/ |
gmaps.js | gmaps.js allows you to use the potential of Google Maps in a simple way. No more extensive documentation or large amount of code | http://hpneo.github.com/gmaps/ |
Layer Slider | LayerSlider is a premium multi-purpose slider for creating image galleries, content sliders, and mind-blowing slideshows with must-see effects | Layer Slider on CodeCanyon |
Rateit | Rating plugin for jQuery. | http://rateit.codeplex.com/ |
Slider Range | Set the range option to true to capture a range of values with two drag handles. The space between the handles is filled with a different background color to indicate those values are selected. | http://jqueryui.com/slider/#range |
Uniform | Uniform masks your standard form controls with custom themed controls. It works in sync with your real form elements to ensure accessibility and compatibility | http://uniformjs.com/ |
Zoom | A plugin to enlarge images on touch, click, or mouseover. | http://www.jacklmoore.com/zoom/ |
Font Awesome | The iconic font designed for use with Twitter Bootstrap | http://fortawesome.github.com/Font-Awesome/ |
Open Sans | Metornic Frontend uses Open Sans web font from google fonts: http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700 | http://www.google.com/webfonts |
PT Sans Narrow | Metornic Frontend uses PT Sans Narrow web font from google fonts: http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=all | http://www.google.com/webfonts |
Source Sans Pr | Metornic Frontend uses Source Sans Pr web font from google fonts: http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900&subset=all | http://www.google.com/webfonts |
assets/global/plugins/bootstrap/
assets/global/plugins/font-awesome/
assets/global/plugins/jquery.min.js
assets/frontend/layout/css/style.css
assets/frontend/layout/css/style-responsive.css
assets/frontend/pages/css/style-shop.css
assets/frontend/layout/css/style.css
assets/frontend/layout/css/style-responsive.css
assets/frontend/pages/css/style-shop.css
assets/global/plugins/bootstrap/
assets/global/plugins/bootstrap/
assets/global/plugins/slider-layer-slider/
assets/global/plugins/jquery.min.js
assets/global/plugins/jquery.min.map
assets/global/plugins/jquery-migrate.min
assets/global/plugins/font-awesome/
assets/frontend/layout/css/style.css
assets/frontend/layout/css/style-responsive.css
assets/frontend/pages/css/style-shop.css
assets/frontend/layout/css/style.css
assets/frontend/layout/css/style-responsive.css
assets/frontend/pages/css/style-shop.css
assets/global/plugins/slider-layer-slider/
assets/global/plugins/bootstrap/
all html files
assets/frontend/layout/scripts/layout.js
assets/frontend/layout/css/style.css
assets/frontend/layout/css/style-responsive.css
assets/frontend/pages/css/style-shop.css
assets/globals/plugins/font-awesome/
feature-buttons.html
assets/frontend/layout/css/style.css
assets/frontend/layout/css/style-responsive.css
assets/frontend/layout/css/style.css
assets/frontend/layout/css/style-responsive.css
assets/frontend/layout/css/style.css
Layout.initFixHeaderWithPreHeader();
Layout.initNavScrolling();
all html files
all html pages
assets/frontend/layout/scripts/layout.js
assets/global/plugins/bootstrap/
shopping-cart.html
feature-icons.html
Just replace the assets folder and refer to the above changelog.
Just replace the assets folder and refer to the above changelog.
Just replace the assets folder with the latest one(merge back your own changes if you have done any) and update html code according to the changelog.
Once again, thanks for purchasing Metronic. We hope you will enjoy using it for your next project.