Hello! First of all we would like to thank you for purchasing our template! :) If you have any questions that are beyond the scope of this help file, please feel free to open a support ticket at Anps support
This file will teach you how to set up and use our HTML template.
This file is really extensive so you might think the theme is hard to use, actually it is not, you probably just might jump in the code and explore everything yourself, this file is more of a reference work if you do not know what to do.
Have fun using our template!
Best regards,
AnpsThemes
Template root folder - contains all of the HTML files and folders:
Certain features of our template require a server to function. This means you cannot access the HTML files directly (using file:// protocol), to fully use our template.
Features that require a server:
We recommend that you install a local server like MAMP (OS X) or WAMP (Windows). Another option is to upload the template to your online server and work on it there.
Top bar is optional on the page, inside the top bar, different elements can be added, like contact info and social icons:
Here is an example:
<div class="top-bar clearfix">
<div class="container">
<ul class="contact-info col-xs-6 transparent">
<li><i class="fa fa-phone"></i> <span class="important">158-985-66-22</span></li>
</ul>
<ul class="social transparent col-xs-6 text-right">
<li><a href="https://twitter.com/yourTwitterurl"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://www.facebook.com/yourFBurl"><i class="fa fa-facebook"></i></a></li>
</ul>
</div>
</div>
Site header must have a class .site-header, inside there must be a class called .header-wrap. In the header wrap you can find logo and site-navigation. Please refere to code example below.
<header class="site-header classic relative">
<div class="container">
<div class="header-wrap clearfix">
<!-- logo -->
<div class="logo pull-left">
<a href="/">
<img src="images/demo/logo-black.png" alt="Logo" class="logo-img">
</a>
</div>
<!-- /logo -->
<!-- site navigation -->
<nav class="site-navigation pull-right">
<div class="mobile-wrap">
<div class="site-search hidden-lg">
<form method="get" id="searchform-header" class="searchform-header">
<input class="searchfield" name="s" type="text" placeholder="Search" />
<button type="submit" class="submit"><i class="fa fa-search"></i></button>
</form>
</div>
<div class="above-nav-bar">
<ul class="contact-info transparent">
<li><i class="fa fa-phone"></i> <span class="important">158-985-66-22</span></li>
<li><i class="fa fa-envelope"></i> <a href="mailto:mail@domain.com">mail@domain.com</a></li>
</ul>
<ul class="social transparent">
<li><a href="https://twitter.com/anpsthemes"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://www.facebook.com/anpsthemes"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-linkedin"></i></a></li>
<li><a href="https://profiles.wordpress.org/anpsthemes/"><i class="fa fa-wordpress"></i></a></li>
</ul>
</div>
<ul id="main-menu" class="main-menu">
<li class="menu-item menu-item-has-children current-menu-item"><a href="index.html">Home</a>
<ul class="sub-menu">
<li class="menu-item current-menu-item"><a href="index.html">Home transparent</a></li>
<li class="menu-item"><a href="index-topbar.html">Home with top bar</a></li>
<li class="menu-item"><a href="index-style-4.html">Home style-4</a></li>
</ul>
</li>
</ul>
</div>
<button class="burger pull-right"><span class="top"></span><span class="middle"></span><span class="bottom"></span></button>
</nav>
</div>
</div><!-- /container -->
</header>
There are two classes you can use in the header to change its styling:
To enable sticky menu, a class .stickyheader should be added to the body element.
Above navigation bar is optional. It offers a possibility to add additional elements above main navigation. Unlike the top-bar, this elements will stay visible also in a sticky version of the menu. Another difference is that it is positioned right from the logo, not full width as the tob bar.
Conserning the main menu, just make sure the nested ul has class .sub-menu. And the li, that contains the nested ul, has class .menu-item-has-children
This element is used to display the page title with an optional video or image background. It also has two size versions: small and large. The large version can be useful, if you want the transparent menu version, as it will be position on top of the page header element.
In the examples we use a H1 element, but you can change to H2, H3, etc.
<div class="page-header page-header-sm">
<h1 class="text-uppercase page-title">Contact</h1>
</div>
<div class="page-header page-header-media page-header-lg" style="background-image: url(images/demo/page-heading.jpg);">
<div class="container">
<h1 class="text-uppercase page-title">All Services</h1>
</div>
<div class="page-header-video"><video src="videos/page-heading.mp4" autoplay loop muted></video></div>
</div>
The above examples shows a usage for a self hosted video, but you can also use YouTube or Vimeo:
YouTube<div class="page-header-video"><iframe id="ytplayer" src="http://www.youtube.com/embed/XkWmCa_nkGY?enablejsapi=1&autoplay=1&controls=0&showinfo=0&loop=1&playlist=XkWmCa_nkGY"></iframe></div>
Vimeo
<div class="page-header-video"><iframe src="https://player.vimeo.com/video/147205169?title=0&byline=0&portrait=01&autoplay=1&loop=1" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>
<div class="breadcrumb">
<div class="container">
<ol>
<li><a href="index.html">Home</a></li>
<li class="active">Current page</li>
</ol>
</div>
</div>
A page content usually resides in a row with a container. These are bootstrap classes, please refer to bootstrap documentation for more information on them.
Page content can be either full-width or if needed a sidebar can be added.
Depending on this, you can add bootstrap classes as .col-md-12 or col-md-9 to the page-content.
A page with sidebar example:
<div class="page-content col-md-9">
<article class="post">
...
</article>
</div>
<aside class="sidebar sidebar-right col-md-3">
...
</aside>
If the layout of the page is more complex (think: front page), where some of the section are fullwidth and other reside in a container, than we can use another aproach to build the page layout - with sections. There are various different sections used on our demos, including:
<aside class="sidebar sidebar-right col-md-3">
<div class="widget">
...
</div>
<div class="widget">
...
</div>
<div class="widget">
...
</div>
<div class="widget">
...
</div>
</aside>
<!-- Site Footer -->
<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-md-3">
<!-- Image Widget -->
<div class="widget widget-image">
<h3 class="widget-title">About Us</h3>
<img src="images/demo/logo-footer.png" alt="Construction">
</div>
<!-- /Image Widget -->
<!-- Text Widget -->
<div class="widget widget-text">
<p style="height: 7px;" class="visible-lg visible-md"> </p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis est tellus, venenatis sed nisi in, egestas bibendum sem. Nam tempus dolor quis interdum auctor.</p>
</div>
<!-- /Text Widget -->
</div>
<div class="col-md-3">
<!-- Navigation Widget -->
<div class="widget widget-nav-menu">
<h3 class="widget-title">Navigation</h3>
<ul class="menu">
<li class="current-page"><a href="index.html">Home</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="#">Features</a></li>
<li><a href="news.html">News</a></li>
<li><a href="about-us.html">About us</a></li>
<li><a href="shop.html">Shop</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="contact.html">Contact us</a></li>
</ul>
</div>
<!-- /Navigation Widget -->
</div>
<div class="col-md-3">
<!-- Contact Info Widget -->
<div class="widget widget-contact-info">
<h3 class="widget-title">Construction HQ</h3>
<ul class="contact-info">
<li><i class="fa fa-map-marker"></i> 300 Pennsylvania Ave NW, Washington, DC 20006, USA</li>
<li><i class="fa fa-phone"></i> <a href="#" class="important">158-985-66-22</a></li>
<li><i class="fa fa-fax"></i> <a href="#">158-985-66-33</a></li>
<li><i class="fa fa-envelope"></i> <a href="mailto:mail@domain.com">mail@domain.com</a></li>
</ul>
</div>
<!-- /Contact Info Widget -->
</div>
<div class="col-md-3">
<!-- Text Widget -->
<div class="widget widget-text">
<h3 class="widget-title">Working Hours</h3>
<p>Visit us at our HQ for a mean cup of coffe and a fantastic consulting team.</p>
</div>
<!-- /Text Widget -->
<!-- Working Hours Widget -->
<div class="widget">
<table class="working-hours">
<tbody>
<tr>
<th>Monday > Friday:</th>
<td>9am > 5pm</td>
</tr>
<tr>
<th>Saturday:</th>
<td>9am > 1pm</td>
</tr>
<tr>
<th>Sunday:</th>
<td>Closed</td>
</tr>
</tbody>
</table>
</div>
<!-- /Working Hours Widget -->
</div>
</div>
</div>
<!-- Copyright Footer -->
<div class="copyright-footer">
<div class="container">
<div class="row">
<div class="col-md-6">
<!-- Text Widget -->
<div class="widget widget-text">
<p>Copyright © 2015 Construction WordPress Theme - Theme by <a href="http://www.anpsthemes.com/" target="_blank">Anpsthemes.com</a></p>
</div>
<!-- /Text Widget -->
</div>
<div class="col-md-6 text-right">
<!-- Social Widget -->
<div class="widget widget-social">
<ul class="social">
<li><a href="https://twitter.com/anpsthemes"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://www.facebook.com/anpsthemes"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-linkedin"></i></a></li>
<li><a href="https://profiles.wordpress.org/anpsthemes/"><i class="fa fa-wordpress"></i></a></li>
</ul>
</div>
<!-- /Social Widget -->
</div>
</div>
</div>
</div>
<!-- /Copyright Footer -->
</footer>
<!-- /Site Footer -->
The code above displays a 4 columns footer. To have a different structure, change the .col-md-3 class (example .col-md-4 for 3 columns layout).
Copyright footer needs to be placed inside .site-footer. It can hold any content you want, just do not forget to wrap it with .container.
<div aria-multiselectable="true" role="tablist" id="accordion-1" class="panel-group">
<div class="panel">
<div id="acc-1-heading-1" role="tab" class="panel-heading">
<h4 class="panel-title small-margin">
<a aria-controls="acc-1-coll-1" aria-expanded="true" href="#acc-1-coll-1" data-toggle="collapse" role="button" class="collapsed">
Title For Toggle #1
</a>
</h4>
</div>
<div aria-labelledby="acc-1-heading-1" role="tabpanel" class="panel-collapse collapse" id="acc-1-coll-1">
<div class="panel-body">
...
</div>
</div>
</div>
<div class="panel">
<div id="acc-1-heading-2" role="tab" class="panel-heading">
<h4 class="panel-title small-margin">
<a aria-controls="acc-1-coll-2" aria-expanded="false" href="#acc-1-coll-2" data-toggle="collapse" role="button" class="collapsed">
Title For Toggle #2
</a>
</h4>
</div>
<div aria-labelledby="acc-1-heading-2" role="tabpanel" class="panel-collapse collapse" id="acc-1-coll-2">
<div class="panel-body">
...
</div>
</div>
</div>
</div>
Our theme uses the normal Bootstrap collapse element for accordion/toggle. More info.
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true"><i class="fa fa-remove"></i></button>
<i class="fa fa-bell-o"></i> Information Message! Your Message Goes Here
</div>
The icon is optional and can also be changed to any other Font Awesome icon.
All alert elements require .alert element and an additional class that defines its color. All available classes:
All alert versions can be see on notifications.html.
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam efficitur rutrum diam, ut commodo ipsum elementum ac. Duis quis iaculis purus, eget mattis urna. Quisque consectetur odio ac ante fermentum malesuada. Nullam eget
lectus euismod, rutrum quam quis, venenatis ligula. Integer egestas elit ipsum. Vivamus nec egestas turpis, et semper neque.</p>
</blockquote>
Above is shown an example for style 1 of the blockquote element. Use .blockquote-style-2 class on the blockquote element to use the secondary style version.
<a href="#" class="btn btn-normal btn-lg"><span class="fa fa-arrow-circle-o-down"></span> Buy now</a>
Button element requires the .btn class and a class that specifies its size (.btn-sm / .btn-md / .btn-lg).
Design classes:
.btn-gradient and .btn-shadow can be added to other design classes. This means you can have a light button with a shadow. The only exception is the minimal buttons, which cannot have a shadow or gradient.
<ul class="clients">
<li class="client">
<a href="#">
<img src="images/demo/client-1.png" alt="Client 1">
</a>
</li>
<li class="client">
<a href="#">
<img src="images/demo/client-2.png" alt="Client 2">
</a>
</li>
<li class="client">
<a href="#">
<img src="images/demo/client-3.png" alt="Client 3">
</a>
</li>
<li class="client">
<a href="#">
<img src="images/demo/client-4.png" alt="Client 4">
</a>
</li>
<li class="client">
<a href="#">
<img src="images/demo/client-5.png" alt="Client 5">
</a>
</li>
<li class="client">
<a href="#">
<img src="images/demo/client-6.png" alt="Client 6">
</a>
</li>
</ul>
The link inside the client element is optional. The default layout is set to 3 columns.
You can also assign column classes to change the layout: .clients-col-1 to .clients-col-8.
<section class="bg-primary">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="download">
<div class="download-content text-uppercase"><i class="fa fa-file-pdf-o"></i> Download a complete catalog of our services and projects specifications</div>
<a href="other/specification.pdf" class="btn btn-md btn-dark btn-shadow"><i class="fa fa-cloud-download"></i> Download</a>
</div>
</div>
</div>
</div>
</section>
<div class="featured featured-video featured-push-top">
<div class="featured-header">
<a data-rel="vimeo" href="http://vimeo.com/29193046">
<img src="images/demo/image.jpg" alt="Number One Planning">
</a>
</div>
<div class="featured-content">
...
</div>
</div>
| Class | description |
|---|---|
| .featured-video | This marks the featured item as a video post |
| .featured-image | Marks te featured item as a image post |
| .featured-push-top | This class pushes the featured item above its standard position. Good for using it below the slider section or hero image. |
| .featured-large | Enlarges the size of featured item. |
<div class="icon">
<div class="icon-header">
<div class="icon-media">
<i class="fa fa-building-o"></i>
</div>
<h3 class="icon-title text-uppercase">The title</h3>
</div>
<p class="icon-desc">Lorem ipsum dolor sit amet, <a href="#">consectetur adiping</a> elit. Etiam placerat odio nec quam aliquet, velsa consectetur neque</p>
<a href="#" class="btn btn-md btn-minimal">Read More</a>
</div>
Icon element is basically a text item with an Icon next to its header. Example usage on our demo can be seen on "Services & Solution" section.
<section class="jumbotron" style="background-image: url('images/demo-image.jpg');">
<div class="container">
<div class="row">
<div class="col-md-8">
<h2 class="text-uppercase">The Title</h2>
<p>Lorem ipsum.</p>
<a href="#" class="btn btn-normal btn-md">Button</a>
</div>
</div>
</div>
</section>
This is a standard bootstrap element. Please refer to Bootstrap documentation for additional info.
<section id="recent-news" class="recent-news section">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 class="title">Recent News</h2>
<div class="owl-nav text-right">
<span class="owlprev"><i class="fa fa-angle-left"></i></span>
<span class="owlnext"><i class="fa fa-angle-right"></i></span>
</div>
</div>
</div>
<div class="owl-carousel">
<article class="post">
...
</article>
<article class="post">
...
</article>
<article class="post">
...
</article>
</div>
</div>
</section>
Recent news makes use of a Owl Carousel. Please refer to owl carousel documentation for more in-depth carousel documentation.
To make the contact form send informations to the correct email, please go to /php/email.php and set your email settings. Both mail function and SMTP are supported. To turn on SMTP, set $useSMTP to "true".
$useSMTP = false;
$yourmail = "your email goes here";
//SMTP settings
$smtpUsername ="your username goes here";
$smtpPassword ="your password goes here";
$smtpHost ="your SMTP server: (ie: smtp.gmail.com)";
<div class="tabs tabs-default">
<!-- Nav tabs -->
<div class="nav-tabs-wrap">
<ul role="tablist" class="nav nav-tabs">
<li class="active" role="presentation"><a data-toggle="tab" role="tab" aria-controls="tab-default-1" href="#tab-default-1">Main tab</a></li>
<li role="presentation"><a data-toggle="tab" role="tab" aria-controls="tab-default-2" href="#tab-default-2">Second tab</a></li>
</ul>
</div>
<!-- Tab panes -->
<div class="tab-content">
<div id="tab-default-1" class="tab-pane active" role="tabpanel">
<h5 class="text-uppercase">Title For Tabs</h5>
<p>Tab 1 content</p>
</div>
<div id="tab-default-2" class="tab-pane" role="tabpanel">
<h5 class="text-uppercase">Title For 2nd Tab</h5>
<p>Tab 2 content.</p>
</div>
</div>
</div>
When creating tabs, have in mind, that tabs navigation and tabs panes are coded separately.
Tabs can be either horizontal as the default example above, or vertical. To use different styles, modify the classes on "tabs" element. You can choose between these settings:
<div class="progress">
<div style="width: 25%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="25" role="progressbar" class="progress-bar progress-bar-success progress-bar-striped active">
Progress 25%
</div>
</div>
There are three styles provided and they come in different colors. Without specifying the colors, the progress bars will be grey. You can add stripped style by adding a class .progress-bar-striped. Colors can be defined with following classes:
<div class="gallery-fs">
<figure>
<img src="image-1.jpg" >
<figcaption>A Caption</figcaption>
</figure>
<div class="gallery-fs-nav">
<button class="gallery-fs-fullscreen"><i class="fa fa-arrows-alt"></i></button>
</div>
<div class="gallery-fs-thumbnails gallery-fs-thumbnails-col-5">
<a href="image-1.jpg" class="selected">
<img src="thumb-1.jpg" >
</a>
<a href="image-2.jpg">
<img src="thumb-2.jpg">
</a>
</div>
</div>
In the figure there is a big version of selected image displayed.
<div class="gallery row">
<div class="col-xs-4">
<figure class="gallery-item">
<div class="gallery-icon">
<a href="image-1.jpg"><img src="thumb-1.jpg"></a>
</div>
</figure>
</div>
<div class="col-xs-4">
<figure class="gallery-item">
<div class="gallery-icon">
<a href="image-2.jpg"><img src="thumb-2.jpg"></a>
</div>
</figure>
</div>
<div class="col-xs-4">
<figure class="gallery-item">
<div class="gallery-icon">
<a href="image-3.jpg"><img src="thumb-3.jpg"></a>
</div>
</figure>
</div>
</div>
Where col-xs-4 is the bootstrap grid class.
<div class="embed-responsive embed-responsive-16by9">
...
</div>
In the demo there are two classes used: embed-responsive embed-responsive-16by9.
Each video wrapper should have the embed-responsive class.
<div class="map"
id="map-1"
data-type="ROADMAP"
data-scroll="false"
data-zoom="14"
data-address="Howard University Middle School of Mathematics and Science"
data-icon="images/marker.png"
data-styles='[{"featureType":"landscape","stylers":[{"saturation":-100},{"lightness":65},{"visibility":"on"}]},{"featureType":"poi","stylers":[{"saturation":-100},{"lightness":51},{"visibility":"simplified"}]},{"featureType":"road.highway","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"road.arterial","stylers":[{"saturation":-100},{"lightness":30},{"visibility":"on"}]},{"featureType":"road.local","stylers":[{"saturation":-100},{"lightness":40},{"visibility":"on"}]},{"featureType":"transit","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"administrative.province","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"visibility":"on"},{"lightness":-25},{"saturation":-100}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffff00"},{"lightness":-25},{"saturation":-97}]}]'
style="height: 450px;">
</div>
HTML (multiple markers)
<div class="map"
id="map-1"
data-type="ROADMAP"
data-scroll="false"
data-zoom="14"
data-markers='[{"address": "Howard University Middle School of Mathematics and Science", "center": "true"},
{"address": "Woodley Park"},
{"address": "Langdon, Washington, D.C."}]'
data-icon="images/marker.png"
data-styles='[{"featureType":"landscape","stylers":[{"saturation":-100},{"lightness":65},{"visibility":"on"}]},{"featureType":"poi","stylers":[{"saturation":-100},{"lightness":51},{"visibility":"simplified"}]},{"featureType":"road.highway","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"road.arterial","stylers":[{"saturation":-100},{"lightness":30},{"visibility":"on"}]},{"featureType":"road.local","stylers":[{"saturation":-100},{"lightness":40},{"visibility":"on"}]},{"featureType":"transit","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"administrative.province","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"visibility":"on"},{"lightness":-25},{"saturation":-100}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffff00"},{"lightness":-25},{"saturation":-97}]}]'
style="height: 450px;">
</div>
Parameters
The official documentation can be found here.
The error will show, if you access the template directly. Revolution slider and other features require a server to function. See our Server section for more details.
This theme has been built using Twitter Bootstrap.
Many elements used in this theme are almost identical to Bootstrap components, so you check their documentation if you need extra help or check if they have extra functionality that is outside the scope of our theme.
Our theme has been build using Sass(Syntactically Awesome Style Sheets) and the sass version of Bootstrap. This means you can quite easily add your own markup and change the theme to fit your project.