HTML Templates Documentation

Template Customization

Configuring the color scheme and layout

Replacing main colors

To replace main colors of the template, you need to open the file _color-default.scss, and replace the values of $primary, $secondary, $gray-base...(depends on your template) variables with the necessary colors. Afterward, compile SCSS into CSS.

The following features can be absent depending on your template

Enabling the Contrast Version of the Template

To enable the contrasting version of the template, you need to attach the style-contrast.css file instead of style.css style.css inside the head tag. If you would like to change the colors of default or contrasting theme, you need to modify the values of variables in the _color-default.scss and _color-contrast.scss files correspondingly.

Enabling the Boxed Version of the Template

Add the class boxed to html. Styles can be found in the file style.scss

Mailform setup

HTML Website Template uses a set of RD Mailform plugins for implementing contact forms. You can find more detailed instructions about these plugins in Extensions > RD Mailform section.

In order to set up the email address to send the e-mails (sent with the help of RD Mailform @version 3.2.0), please replace in bat/rd-mailform.config.json file, value of recipientEmail field to recipient email.

In order to set up the email address to send the e-mails (sent with the help of RD Mailform @version 3.0.0), please replace in js/script.js file, in RD Mailform initialization section, e-mail, which is specified in recipients variable, with the needed recipient's email:

recipients = '[email protected]';

If version is not specified or lower than 3.0.0, you need to set up in bat/rd-mailform.php file the e-mail, which is specified in $recipients variable, with the needed recipient's email:

$recipients = '[email protected]';

Configuring SMTP

To configure sending e-mail using SMTP, you need to open the bat/rd-mailform.config.json file and set the value of the useSmtp field to true. Then, enter the settings of your SMTP into next object field.

SMTP configuration is available in rd-mailform starting from version 3.1.0

To configure smtp through gmail, you need to give access to unreliable applications

Template scroll animation setup

HTML Website Template uses Wow.js extension and css library Animate.css for implementing the scroll animation. To enable animation on page scroll, add .wow-animation class for the html tag.

<html lang="en" class="wow-animation">

You should also specify the .wow class and the corresponding class for the target element.


        <div class=wow fadeIn">
        ...
        </div>
    

You can also set the animation delay, using the data-wow-delay attribute.


        <div data-wow-delay="0.2s" class="wow fadeIn">
        ...
        </div>
    

You can find the list of available animations on the Components > Toolkit Components > Animations template page. You can find a list of classes for generating different animated effects below.

  • fadeIn
  • fadeLeft
  • fadeRight
  • fadeUp
  • fadeDown
  • slideLeft
  • slideRight
  • slideUp
  • slideDown

Slider Setup

HTML Website Template uses Swiper Slider plugin for implementing the slider. You can find more detailed instructions on setting it up in Extensions > Swiper Slider section.

Parallax Setup

HTML Website Template comes with RD Parallax plugin for implementing parallax effect. You can find more detailed information about the plugin and its setup in Extensions > RD Parallax section.

Adding a section with background image parallax

To create a section with background image parallax, please use the following marking, in which you should replace the image path in data-url attribute:


        <div class="rd-parallax">
        <div data-speed="0.35" data-type="media" data-url="path/to/your-image.jpg" class="rd-parallax-layer"></div>
          <div data-speed="0" data-type="html" class="rd-parallax-layer">
            ...
          </div>
        </div>
    

Search by pages setup

HTML Website Template comes with RD Search plugin for implementing search by pages.

Changing the date on the page

To change the date on the target page, find the meta-tag with name="date" attribute and change the value of the 'content' attribute.


        <meta name="date" content="...">
    

How to change tags on the page

To change tags on the target page, find the meta-tag with name="keywords" attribute and change the value of the 'content' attribute.


        <meta name="keywords" content="HTML Website Template">
    

hese tags are required for the correct functioning of the search. If you add new pages, you should also add these meta-tags.

Right to Left (RTL)

The realization of an RTL-variant of the website is foreseen in Website Templates.

You can find the example of an RTL-page by following index-rtl.html in your template.

To implement RTL, add dir="rtl" attribute in html, and instead of regular template styles in <head>

<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">

enable

<link rel="stylesheet" href="css/bootstrap-rtl.css">
<link rel="stylesheet" href="css/style-rtl.css">

To convert CSS, which you are going to add in the RTL version, you can use rtlcss.com