1. Start
  2. Files Structure
  3. HTML Structure
  4. CSS Structure
  5. Javascript
  6. Fonts
  7. Icons
  8. Logo
  9. Sliders
  10. Main Slider
  11. Lightbox
  12. Google Map
  13. PHP Scripts
  14. Social Media - Icons
  15. Theme Config
  16. Countdown
  17. Source & Credits

RE ESTATE

Property Sale/Rent HTML Template


Thank you for purchasing our theme. If you have any questions that are beyond the scope of this help file, please feel free to email us.

 

Files Structure



            - assets/css     (Template CSS)
            - assets/ico     (Favicon and apple touch icon)
            - assets/img     (All Images)
            - assets/js      (Template JS)
            - assets/php     (Contact Form php files)
            - assets/plugins (All external libs. We keep all of them in this folder to make updates easily.)
        

 

HTML Structure


The template is based on Bootstrap Framework - http://getbootstrap.com/
The default Bootstrap grid system utilizes 12 columns, making for a 1170px wide depending on your viewport.
Below 480px viewports, the columns become fluid and stack vertically.

Create a .row and add the appropriate number of .col-sm-* columns.

HTML Markup

        <div class="row">
            <div class="col-sm-12">
                Level 1 column
                <div class="row">
                    <div class="col-sm-6">Level 2</div>
                    <div class="col-sm-6">Level 2</div>
                </div>
            </div>
        </div>
        

If you need more information, please visit this site: http://getbootstrap.com/css/#grid

 

CSS Structure


The organization of the CSS is one of our priorities.
These are the CSS file we're using in the template:


        - assets
            - css
                - theme.css        - (Main CSS file)
                - theme-blue-1.css - (Predefined Colors)
                - theme-blue-2.css
                - ...
        

 

Javascript


jQuery - is a Javascript library that greatly reduces the amount of code that you must write.
For more information, please visit http://www.jquery.com/

All the JavaScript libraries and files are included at the bottom of every HTML page like this:

            
        

The initializations and parameters (sliders, effects, etc.) are contained in assets/js/theme.js

 

Fonts


To change the embedded font, please take a look in the head part of assets/css/theme.css:


            @import url('http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900');
        

To change the font, first go to http://www.google.com/webfonts choose a font and add the generated code to the top of theme.css.

Then edit font-family in


            body {
                font-family: 'Lato', sans-serif;
                font-size: 14px;
                line-height: 1.72;
                background: #ffffff;
                color: #737475;
                -webkit-font-kerning: auto;
                -webkit-font-smoothing: antialiased;
                -webkit-backface-visibility: visible !important;
                position: relative;
                overflow-x: hidden;
            }
        

and


            h1, h2, h3, h4, h5, h6 {
                font-weight: normal;
                color: #141f23;
            }
        

and


            .btn-theme {
                color: #ffffff;
                border-width: 3px;
                background-color: #00b16a;
                border-color: #00b16a;
                padding: 12px 20px;
                font-size: 14px;
                font-weight: 600;
                line-height: 1;
                text-transform: uppercase;
                -webkit-transition: all 0.2s ease-in-out;
                transition: all 0.2s ease-in-out;
            }
        

 

Icons


Font Awesome is a @font-face iconset that you can change size and color of the icons usingCSS.

If you need more information, please visit this site: http://fortawesome.github.com/Font-Awesome/

 

HTML Markup:

        <i class="fa-edit"></i>
        <i class="fa-search"></i>
        ...
        

 

Sliders


Owl Carousel

Owl Carousel is the slider you'll find in the content.

It's an easy to use lightweight carousel with some decent features.

You can find more documentation here http://www.owlcarousel.owlgraphic.com/

 

Swiper

Another way to build and use carousel with some features.

You can find more documentation here http://www.idangero.us/swiper/

 

Main slider


Main slider has id "main-slider" and each slide divided by html comment '<!-- Slide 1 -->' for easy find where slide html code start, also each slide container has css class 'slide1, slide2, slide3 ...'

To change the text in each slide, you need to find 'h2' html tag with class 'caption-title' and 'h3' tag with class 'caption-subtitle' in div with 'caption' class

If you wont remove some slide just remove div with all content like this '<div class="item slide1">'


            ...

            

You can find more documentation here http://www.owlcarousel.owlgraphic.com/

 

If you wont change option for main slider you need to open assets/js/theme.js and find 'initMainSlider' function and set true/false for option what you wont to change

autoplay: true, - set autoplay for slider
nav: false, - hide navigation arrow
dots: true, - show dots navigation

            // Main Slider
            initMainSlider: function () {
                $('#main-slider').owlCarousel({
                    //items: 1,
                    autoplay: false,
                    autoplayHoverPause: true,
                    loop: true,
                    margin: 0,
                    dots: false,
                    nav: true,
                    navText: [
                        "",
                        ""
                    ],
                    responsiveRefreshRate: 100,
                    responsive: {
                        0:    {items: 1},
                        479:  {items: 1},
                        768:  {items: 1},
                        991:  {items: 1},
                        1024: {items: 1}
                    }
                });

            }
        

 

Google Map


Open assets/js/theme.js and find function initGoogleMap and set your coordinates for map and marker.

in line: center: new google.maps.LatLng(40.9807648, 28.9866516) past your coordinates for map example: center: new google.maps.LatLng(your coordinates goes here)

in line: position: new google.maps.LatLng(41.0096559,28.9755535), past your coordinates for marker example: position: new google.maps.LatLng(your coordinates goes here)

https://support.google.com/maps/answer/18539?hl=en

If you wont change icon for marker replace 'icon-google-map.png' by your icon in 'assets/img/' folder

            // Google map
            initGoogleMap: function() {
                var map;
                var marker;
                var image = 'assets/img/icon-google-map.png'; // marker icon
                function initialize() {
                    var mapOptions = {
                        scrollwheel: false,
                        zoom: 12,
                        center: new google.maps.LatLng(40.9807648, 28.9866516) // map coordinates
                    };
                    map = new google.maps.Map(document.getElementById('map-canvas'),
                        mapOptions);
                    marker = new google.maps.Marker({
                        position: new google.maps.LatLng(41.0096559,28.9755535), // marker coordinates
                        map: map,
                        icon: image,
                        title: 'Hello World!'
                    });
                }
                google.maps.event.addDomListener(window, 'load', initialize);
            }
        

 

PHP Scripts


Registration Form

For Registration Form to work only thing you need to do is to setup your email address and your name.
To do this, please open "assets/php/registration-form.php" file and change these lines:

        $to = 'you@domain.com';
        $toname = 'Your Name';
        

One notice: this will be functional only on your server, php files can not be executed on your local computer.

 

Social Media - Icons


We are using FontAwesome for social media icons in this template. Insert icons like this:

            
        

Here's the complete list of available icons from FontAwesome docs:

FontAwesome social icons

 

Theme Config


Template has buit-in styles:

To change this you need need find 'body' tag in html and change/add correct css class
here are default setting example:

             
            <body id="home" class="wide"> ...
             
        

 

for boxed view change 'wide' class to 'boxed'

             
            <body id="home" class="boxed"> ...
             
        

 

Predefined colors theme list:

by default set green color 'theme-green-1.css' and if you wont color use theme-blue-1 you need find this code below change 'theme-green-1.css' to 'theme-blue-1.css'

             
            
             
        

 

You can enable/disable theme config panel by commenting this code at the end of the html

Enabled panel:

             
            <script src="assets/plugins/jquery.cookie.js"></script>
            <script src="assets/js/theme-config.js"></script>
             
        

 

Disabled panel:

             
            <!--script src="assets/plugins/jquery.cookie.js"></script>
            <script src="assets/js/theme-config.js"></script-->
             
        

 

Countdown


The countdown is driven by the jQuery Countdown script

You can set you date by open assets/js/theme.js file and change it this code below

            austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
        

A note on Date - the JavaScript Date constructor expects the year, month, and day as parameters. However, the month ranges from 0 to 11. To make explicit what date is intended (does a month of 3 mean March or April?) I specify the month from 1 to 12 and manually subtract the 1. Thus the following denotes 25 December, 2014.

            austDay = new Date(2014, 12-1, 25);
        

For more information check the documentation

 

Source & Credits


 

Fonts:
Google Fonts - http://www.google.com/webfonts
Icons Font-face - http://fortawesome.github.com/Font-Awesome/

Scripts:
jQuery - http://www.jquery.com/
Modernizr - http://modernizr.com/
Bootstrap Framework - http://getbootstrap.com/
Bootstrap-select - http://silviomoreto.github.io/bootstrap-select/
Font Awesome - http://fontawesome.io/
Owl Carousel 2 - http://www.owlcarousel.owlgraphic.com/
Swiper - http://www.idangero.us/swiper/
Superfish Menu - http://plugins.jquery.com/superfish/
HTML5shiv - http://code.google.com/p/html5shiv/
Respond.js - https://github.com/scottjehl/Respond
PrettyPhoto- http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
jQuery Easing - http://gsgd.co.uk/sandbox/jquery/easing/
Smooth anchor scrolling plugin for jQuery - http://mths.be/smoothscroll
jCountdown - http://keith-wood.name/countdown.html
Animate.css - http://daneden.github.io/animate.css/

The images included in preview are for demonstration purposes and should always be replaced with your own work.

 

Images:
http://#/

plexdesigns