Getting Started
Thank you so much for purchasing our item from TemplateMonster.
Thank you so much for purchasing our item from TemplateMonster.
After HTML Website Template package extracting you'll see the following files structure:
build folder - all finished files will be added to this folder after compilation, it is also called the production folder, i.e. the result of the work. The build folder will contain subfolders. They will be created automatically at compilation, so I did not specify them in the structure ( Important! Before executing the "gulp build" command, the folder build must be created in the project's root if it does not exist. ).app folder - the source files of the project will be stored here. In general, there can be a lot of files in the child folders, depending on the size of the project. Each file types are then merged into a common file and copied to the production folder. At the root is the file index.html and other *.html.app or build folderbuild/assets/css folder or app/assets/scss folder with sourcesbuild/assets/js folder or app/assets/js folder with sourcesbuild/assets/fonts folder or app/assets/fonts folder with sourcesHTML Website Template .html pages structure is built on the following principle:
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Your Title, Description, Stylesheets -->
</head>
<body>
<main class="main">
<div class="main-inner">
<header class="header">
......
</header>
<div class="bread-crumbs">
......
</div>
<div class="section">
......
</div>
</div>
<footer class="footer">
......
</footer>
<div class="lines">
......
</div>
<div class="preloader active"><div></div></div>
<div class="cursor hide"></div>
<div class="grained-bg"><canvas id="grained-bg"></canvas></div>
<div class="cookie-message-outer">
......
</div>
<div class="go-to-top crs">
......
</div>
<nav class="spf main-menu">
......
</nav>
</main>
<!-- JavaScript -->
</body>
</html>
style.css file contains all of the specific stylings for the page. The file structure is built on the following principle:
/*
0. Root
1. Reset
1.1 Grid
2. Content
2.1 Fonts
2.2 Base
2.3 Tables
2.4 Typography
3. Layouts
3.1 Header
3.2 Section
3.3 Footer
4. Components
4.1 Preloader
4.2 Lines
4.3 Buttons
4.4 Forms
4.5 Popup
4.6 Tabs
4.7 Accordions
4.8 Breadcrumbs
4.9 Pagination
4.10 Rating
4.11 Slider
4.12 Socials
4.13 Cursor
4.14 Grained background
5. General
6. Sections
6.1 Intro
6.2 Intro slider
6.3 Image items
6.4 Items of numbers
6.5 Icon items
6.6 Team
6.7 News
6.8 Contacts
6.9 Marquee
6.10 Brand in numbers
6.11 Testimonials
6.12 Brands
6.13 Pricing
6.14 Seo
7. Cookie
8. Media
*/
*.js structure is built on the following principle:
(function() {
"use strict";
const app = {
init: () => {
app.setUpListeners();
.....
},
setUpListeners: () => {
.....
},
.....
}
app.init();
}());
The logo container can be found in the header container - <header>
<!-- Begin logo -->
<a class="logo h-amin crs" href="./" title="SLE">
<img src="assets/img/logo.svg" width="160px" height="32px" alt="SLE"/>
</a><!-- End logo -->
The style.css file contain root variables that you can change depending on your requirements.
:root {
--font-family: "Source Sans Pro";
--font-size: 16px;
--font-weight: 400;
--font-style: normal;
--line-height: 1.5;
--heading-font-family: "Montserrat";
--heading-font-weight: 700;
--heading-line-height: 1.3;
--additional-font-family: "Playfair Display";
--accent-color: #DB3700;
--background-color: #ffffff;
--text-primary: #151515;
--link-color: #3267B5;
--border-color: #474747;
--placeholder-color: #6F6F76;
--error-color: #E02D00;
--menu-background-color: #151515;
--menu-text-primary: #ffffff;
}
How to edit form?
assets/form/handle.php file.<?php
$subject = "Contact form";
$from_name = "SLE";
$from_email = "example@mail.com";
$to_email = $from_email;
...
$subject = "Contact form"; by default.
*.html file find form tag and find name="form_subject" in input tag and change the subject. Unique for each form.
$from_name = "SLE"; the name of the project.$from_email = "example@mail.com"; admin email.$to_email = $from_email default, but you can change that.name="Name" and name="Email" attributes for the name and email fields in input.How to edit cookie?
<main class="main">
<div class="cookie-message-outer">
......
</div>
You can also change cookie settings.
assets/js/custom.js file.(function() {
"use strict";
const app = {
.....
//=== Cookie ===\\
COOKIE_DISPLAYED: false,
COOKIE_NAME: 'sle-cookie',
COOKIE_DURATION: 2000,
COOKIE_EX_DAYS: 30,
.....
}
app.init();
}());
COOKIE_DISPLAYED to true.HTML Website Template uses Flickity plugin for implementing the carousel. You can find more detailed instructions on the Flickity plugin website.
Go to UI Elements page.