Version: 1.4 | Release Date: 6th December 2016

- Get Support
- Themes

Follow the steps below to get started with your Site Template:

1. Open the `Package/HTML` Folder to find all the Templates Files
2. You will need to Upload these files to your Web Server using FTP in order to use it on your Website.
3. Make sure you upload the required files/folders listed below:
   - `HTML/css` - Stylesheets Folder
   - `HTML/images` - Images Folder
   - `HTML/js` - Javacripts Folder
   - `HTML/index.html` - Index File/Homepage
   The other files can be used according to your preferences.
4. You're now good to go..! Start adding your Content and show off your Brand New Beautiful Website in style.

# HTML Structure

Castle follows a simple coding structure. here is the sample:

    <!DOCTYPE html>
    <html lang="en-US">
    <head>
    <!-- Basic Page Needs -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Mobile Specific Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title>Castle</title>
    <!-- CSS -->
    	...
    </head>
    <body>

    <!-- Header -->
    <header id="header">
      ...
    </header>

    <!-- Site Content -->
    <section>
      <div class="container clearfix">
        <!-- Sections inner content goes here -->
        ........
      </div>
    </section>

    <!-- Footer== -->
    <footer class="footer">
      <div class="container">
      <!-- Footer Inner -->
      .....
      </div>

       <!--CopyRight-->
    <div class="copyright">
      <div class="row">
        <div class="col-sm-12 top20 bottom20">
          <p>Copyright © 2017 <span>Castle</span>. All rights reserved.</p>
        </div>
      </div>
    </div>

    </footer>

    </body>
    </html>

# Logo Settings

The Logo Container can be found in the `header` tag, within navigation

     <a class="navbar-brand" href="index.html"><img src="images/logo.png" alt=""></a>

Note The Logo Image's maximum width can be 200px and maximum height can be 60px.

# Changing Fonts

Change your Fonts on the Fly as we have included fonts in CSS. Bydefault Castle uses `Roboto` from the Google Fonts Library.You can also include in HTML in the `head` tag orimport in CSS as wel

    <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700" rel="stylesheet" type="text/css" />

In order to change the Fonts, you will need to Edit the Above Links with your Custom Font if you plan to use a Google Font or Remove it complete if you plan to use a Self Hosted font. Here is an Example for using Self Hosted Fonts.

# Website Optimization Tips

A Fast & Optimized Website has several factors which needs to be implemented in order to achieve the desired results. There are several Optimization Techniques available which will definitely affect your Website's Performance in a Positive Way & we want to share a few of them with you:

- #### gZip Compression & Browser Caching

  This is probably one of the Most Important Techniques you should definitely implement in order to bump up your Website's Loading Speed. gZip Compression is used to compress the Files that are delivered when loading a Website. It covers HTML, CSS, Javascript & Font Files along with other miscellaneous text files. Where as Browser Caching also covers Images & Videos apart from including the above files. This is used to saves the Static Data in your Browser itself so that when you open the Next Pages on the Same Website, the content does not gets Downloaded again, loading the Website fast.

  gZip Compression & Browser Caching can be enabled using the `.htaccess` File on an Apache Web Server. You can use the Codes from here: https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess to enable these modules on your server.

- #### Image Compression & Optimization

  We tend to use Lots of Images on our Websites but we often do not make efforts to Compress & Optimize them. Remember, the Larger the Image, the more time it takes to download and therefore this slows your website loading times affecting User Experience. Your customer will leave your website if it does not load within 3-5 Seconds which adversely affects your Sales. Therefore, it is important to Resize, Optimize & Compress your Images before using it on your Website. Here are some Tips which might come handy in optimizing images:

  - Resize your Images: Resize your Images before using it on your Website. Do not just Download an Image & place it as it is in your Website's `<img>` Tag without resizing it. The size/resolution of the Image matters since it is not recommended to use an Image size of `1200px` x `800px` in a Content Size of `300px` x `200px` as this unnecessary. Resize it to `300px` x `200px`
  - Image Formats: There are three common file types that are used for web images which are JPEG, GIF, & PNG. For images with a Flat Background use JPEG images, for images with a Transparent background use PNG images and for images with Animations use GIF images.
  - Compressing Images: Images Compression is important as it considerably reduces the size without losing the quality. There are several FREE Image Optimization Tools available to Download.
    For MAC use ImageOptim
    For Windows use Riot for compressing JPEG Images & PNG Gauntlet for PNG Images.

- #### CSS & jQuery Minifications

  It is also recommended that you Combine & Minify all your CSS Files to a single CSS File & all Javascript Files to a single JS File since Minification reduces the size of the File and Combining the files helps in reducing the number of HTTP requests made to the server. This is also an Important Factor in increasing the speed of your website. There are several tools available online to Minify your CSS & JS Files. Our recommendations are:
  For CSS use CSS Minifier and For Javascript use Javascript Minifier.

- #### Content Delivery Network

  You can use a CDN to further speed up your website. You can use the CDn to deliver static files of your website like CSS, JS, Images & Font Files. There are several CDN Hosting Providers available on the Internet but we would recommend MaxCDN or CloudFlare. Note: CDN setup requires Extra monthly Fees to setup, so it is completely optional & according to your needs.

- #### Fast Web Hosting Servers

  A lot depends on your Web Hosting Servers, so it is recommended that you choose a Hosting Company/Server that provides a Reliable & a Fast Hosting Service. You can check out some recommended Hosting Services here: http://themeforest.net/get_hosting.

# Headers

You can choose this headers while creating your Pages. Simply adding the Header Type CSS class to the Header Element will activate the Header Type. The list of Header Type Classes & its descriptions are provided below for your reference:

Type Class | Features | Code Example
--- | --- | ---
`Header Boxed` | Header within boxed container having top bar white turns sticky on scroll. |
    <header class="layout_boxed">
    	...
    </header>
`Header Dark Full` | Header with a Dark Background and top bar on full width |
    <header class="layout_dark">
    	...
    </header>
`Header Light` | Header with a light Background and top bar on full width |
    <header class="layout_default">
    	...
    </header>
`Header White` | Header with a White Background and top bar on full width |
    <header class="white_header">
    	...
    </header>

# Drop Down Menu

You can start using the Drop Down Menu have using the Following code:

    <nav class="navbar navbar-default bootsnav">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-menu">
            <i class="fa fa-bars"></i></button>
              <a class="navbar-brand" href="#brand"><img src="LOGO_ADDRESS" class="logo" alt=""></a></div>
                <div class="collapse navbar-collapse" id="navbar-menu">
                  <ul class="nav navbar-nav navbar-right" data-in="fadeInDown" data-out="fadeOutUp">
                    <li><a href="#">Home</a></li>
                      <li class="dropdown">
                        < href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>
                        <ul class="dropdown-menu">
                        <li><a href="#">text</a></li>
                        <li><a href="#">text</a></li>
                        ...
                      </ul>
                    </li>
                  </ul>
                </div>
              </div>
            </div>
          </li>
      </ul>
    </nav>

# Mega Menu

You can start using the Mega Menu have using the Following code:

      <nav class="navbar navbar-default bootsnav">
        <div class="container">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-menu">
              <i class="fa fa-bars"></i></button>
                <a class="navbar-brand" href="#brand"><img src="LOGO_ADDRESS" class="logo" alt=""></a></div>
                  <div class="collapse navbar-collapse" id="navbar-menu">
                    <ul class="nav navbar-nav navbar-right" data-in="fadeInDown" data-out="fadeOutUp">
                      <li><a href="#">Home</a></li>
                        <li class="dropdown">
                          < href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>
                          <ul class="dropdown-menu megamenu-content" role="menu">
                            <li>
                            <div class="row">
                              <div class="col-menu col-md-3">
                               <h6 class="title">Title Menu One</h6">
                                <div class="content">
                                   <ul class="menu-col">
                                    <li><a href="#">text</a></li>
                                    -- More Menu --
                                  </ul>
                            </div>
                          </div>
                          ...
                        </ul>
                      </li>
                    </ul>
                  </div>
                </div>
              </div>
            </li>
          </ul>
      </nav>

# Page Titles [subpage title]

Class | Description | Example
--- | --- | ---
`Default` | Default Page Title style with Text aligned Center & And a line of Paragraph. |
    <section class="page-banner>
      <div class="container">
        <div class="row">
          <div class="col-md-12 text-center">
            <h1  class="p-white text-uppercase">Page Title</h1>
            <p  class="p-white">A Short Page Title Tagline</p>
          </div>
        </div>
      </div>
    </section>

# Columns & Grid

### Bootstrap Grid

.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-2
.col-md-2
.col-md-2
.col-md-2
.col-md-2
.col-md-2
.col-md-3
.col-md-3
.col-md-3
.col-md-3
.col-md-4
.col-md-4
.col-md-4
.col-md-5
.col-md-5
.col-md-2
.col-md-6
.col-md-6
.col-md-1
.col-md-11
.col-md-2
.col-md-10
.col-md-3
.col-md-9
.col-md-4
.col-md-8
.col-md-5
.col-md-7

# Helper Classes

We have created some really useful helper classes for you. You can see all of them in Castle.

- `.padding` for creating padding of 80px from top and bottom on section
- `.padding_top` for creating padding of 80px from top on section
- `.padding_bottom` for creating padding of 90px from bottom on section
- `.padding_bottom_half` for creating padding of 40px from bottom on elements
- `.margin40` for creating padding of 90px from top and bottom on section
- `.top30` for creating margin of 30px from top on elements
- `.top20` for creating margin of 20px from top on elements
- `.top10` for creating margin of 10px from top on elements
- `.bottom30` for creating margin of 30px from bottom on elements
- `.bottom20` for creating margin of 20px from bottom on elements
- `.bottom20` for creating margin of 20px from bottom on elements
- `.bg_light` for creating backgroung with light color
- `.bg_white` for creating backgroung with white color
- `.grey` for creating backgroung with grey color used in this template
- `.border_radius` for creating the rounded corners of 4px on elements
- `.uppercase` for the Text-transform in uppercase mode
- `.captlize` for the Text-transform in captilized mode
- `.t_white` for the text with white color
- `.t_yellow` for the text with yellow color
- `.btn_common` for the common button styling used in this template
- `.btn-blue` button styling with default blue background used in this template
- `.btn-dark` button with default dark black background used in this template
- `.btn-yellow` button styling with default yellow background used in this template
- `.btn-white` button with white border and text
- `.btn-white-fill` button with white background
- `.btn-more` a unique styled button with animated arrows

# Slider Types & their Options

Castle includes 2 Unique Sliders for you to be used on any Page with 100s of Options. The List of all the Sliders included are mentioned as follows:

- Revolution Slider
- Owl Slider

## Revolution Slider

You can find the Revolution Slider related Documentation here.
Read Revolution Slider Docs

## Owl Slider

You can find the wl Slider related Documentation here.
Read Owl Slider Docs

# Blog Setup

Posts use Simple Markup. Use the Code Sample below:

      <section id="news-section" class="property-details padding-t-80">
        <div class="container">
          <div class="row padding-t-55">
            <div class="col-md-8">
                <div class="row">
                  <div class="news-1-box clearfix"<
                    >div class="col-md-5 col-sm-5 col-xs-12">
                      <img src="images/news/news-1.jpg" alt="image" class="img-responsive"/>
                      </div>
                        <div class="col-md-7 col-sm-7 col-xs-12 padding-left-25">
                        <h3>Blog Heading</h3>
                      <div class="news-details padding-b-10 margin-t-5">
                    <span><i class="icon-icons230"></i>Tesxt</span>
                  <span><i class="icon-icons228"></i>Text</span>
                </div>
              <p class="p-font-15">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis et sem sed sollicitudin. Donec non odio neque. Aliquam hendrerit mi accumsan nec...>
              </p>
            <div class="pro-3-link padding-t-20"<a href="#">Read More <i class="icon-arrow-right2"></i></a>
    	 <div class="news-1-box clearfix"<
                    >div class="col-md-5 col-sm-5 col-xs-12">
                      <img src="images/news/news-1.jpg" alt="image" class="img-responsive"/>
                      </div>
                        <div class="col-md-7 col-sm-7 col-xs-12 padding-left-25">
                        <h3>Blog Heading</h3>
                      <div class="news-details padding-b-10 margin-t-5">
                    <span><i class="icon-icons230"></i>Tesxt</span>
                  <span><i class="icon-icons228"></i>Text</span>
                </div>
              <p class="p-font-15">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis et sem sed sollicitudin. Donec non odio neque. Aliquam hendrerit mi accumsan nec...>
              </p>
            <div class="pro-3-link padding-t-20"<a href="#">Read More <i class="icon-arrow-right2"></i></a>
          </div>
            </div>
        </div>
      </div>

# Post Types

You can use a 7 different types of Post Types:

- Image
- Embedded Video
- Slider Gallery
- Social Icons
- Form

# Listing Setup

Castle provides a very elegant way to Listing your work. Setting up Listing is simple. Please use the following codes:

#### Setting up Listing:

    <section id="agent-p-2" class="listing-1 padding-t-80">
      <div class="container">
        <div class="row">
          <div class="col-md-8 col-sm-8 col-xs-12">
          ------
          </div>

          <div class="col-md-4 col-sm-4 col-xs-12">
          ------
          </div>
        </div>
      </div>
    </section>

# Introduction

Castle boasts of a huge number of handy Shortcodes which are quite powerful, flexible, functional & easy to use. Setting up shortcodes is very easy & Self Explanatory. Here is the List of Shortcodes included with Castle:

- `Animations`
- `Buttons`
- `Carousels`
- `Clients`
- `Columns`
- `Counters`
- `Icon Boxes`
- `Galleries`
- `Headings`
- `Icon Lists`
- `Labels`
- `Fancybox`
- `Maps`
- `Media Embeds`
- `Navigations`
- `Paginations`
- `Pricing Boxes`
- `Process Steps`
- `Promo Boxes`
- `Blockquotes`
- `Responsive`
- `Sections`
- `Social Icons`
- `Styled Icons`
- `Tables`
- `Testimonials`
- `Thumbnails`
- `Toggles`

Each of the above mentioned Shortcodes are easily extendable, flexible & easy to use. You can find the sample codes in their respective files. We are explaining a few of them for your Reference.

# Animations

Scroll to reveal Animations are latest in the Trends. You can do them too with Castle. You can use animate-it class on any element you want. Here is the Sample Code:

    <div class="animate-it fadeInLeft"></div>

You can also use delays for your Animations:

    <div class="wow fadeInLeft" data-wow-delay="500"></div>

Note: Delay Duration is in milliseconds.

Note: animate.css, wow.js Files are compulsory for Animations.

Here is the list of the Animation Types you can use:

- `bounce`
- `flash`
- `pulse`
- `rubberBand`
- `shake`
- `swing`
- `tada`
- `wobble`
- `bounceIn`
- `bounceInDown`
- `bounceInLeft`
- `bounceInRight`
- `bounceInUp`
- `bounceOut`
- `bounceOutDown`
- `bounceOutLeft`
- `bounceOutRight`
- `bounceOutUp`
- `fadeIn`
- `fadeInDown`
- `fadeInDownBig`
- `fadeInLeft`
- `fadeInLeftBig`
- `fadeInRight`
- `fadeInRightBig`
- `fadeInUp`
- `fadeInUpBig`
- `fadeOut`
- `fadeOutDown`
- `fadeOutDownBig`
- `fadeOutLeft`
- `fadeOutLeftBig`
- `fadeOutRight`
- `fadeOutRightBig`
- `fadeOutUp`
- `fadeOutUpBig`
- `flip`
- `flipInX`
- `flipInY`
- `flipOutX`
- `flipOutY`
- `lightSpeedIn`
- `lightSpeedOut`
- `rotateIn`
- `rotateInDownLeft`
- `rotateInDownRight`
- `rotateInUpLeft`
- `rotateInUpRight`
- `rotateOut`
- `rotateOutDownLeft`
- `rotateOutDownRight`
- `rotateOutUpLeft`
- `rotateOutUpRight`
- `hinge`
- `rollIn`
- `rollOut`
- `zoomIn`
- `zoomInDown`
- `zoomInLeft`
- `zoomInRight`
- `zoomInUp`
- `zoomOut`
- `zoomOutDown`
- `zoomOutLeft`
- `zoomOutRight`
- `zoomOutUp`

# Sections & Parallax

Setup content you want to stand out. You can use Parallax Images or HTML5 Videos as Sections.

### Setting up Sections:

Setup your Sections outside the `.container` element. sections padding-top and padding-boottom is 80px by default but you can change it by adding handy classes like no-padding, padding-top-20 etc.

    <section">
    	<div class="container clearfix">
    		...
    	</div>
    </div>

### Setting up Parallax Sections:

Make sure your Parallax Images are of enough `Width` & `Height`, preferably `1920x1300` or above.

    <section id="parallax">
    	<div class="container clearfix">
    		...
    	</div>
    </div>

and

    $('#parallax').parallax('50%', 0.3);

# Fancybox

### Setting up Fancybox:

Adding a `class"fancybox"` to any Link or Button will turn it into a Fancybox Element. You can use different Types of Fancybox with an Easy Setup:

##### Single Image:

    <a href="link-to-fancybox-image.jpg" class="fancybox"><img src="link-to-small-thumb.jpg" alt="Fancybox Image"></a>

##### You can also use Iframe, Video, AJAX, Gallery, AJAX Gallery in Fancybox please refer FancyboxDocs

# Google Map - 1

You can add Embedded Google Maps to any Page using the following setup:

- #### Step 1:

  Add the Google Maps Specific Scripts in the `<head>` Tag below the `js/plugins.js` script linking:

      <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>
      <script type="text/javascript" src="js/google-map.js"></script>
      <script type="text/javascript" src="js/neary-by-place.js"></script>

- #### Step 2:

  Add a `div` which will contain your Google Map:

      <section id="banner-map">
      	<div class="container">
          	<div class="row property-list-area property-list-map-area">
              	<div class="property-list-map">
                  	<div id="property-listing-map" class="multiple-location-map" style="width:100%;height:adjust;"></div>
                  </div>
              </div>
          </div>
      </section>

# Google Map

You can add Embedded Google Maps to any Page using the following setup:

- #### Step 1:

  Add the Google Maps Specific Scripts in the `<head>` Tag below the `js/plugins.js` script linking:

      <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
      <script type="text/javascript" src="js/gmaps.js"></script>

- #### Step 2:

  Add a `div` which will contain your Google Map:

      <section id="contact-us">
      	<div class="contact">
          	<div id="map">
              </div>
           </div>
      </section>

# Icons

We've used Font Awesome icons and Custom SVG Icons in it which you can easily use in website just copy and paste the code.