About
Outsider Redraft
HTML5 Personal Blog / Magazine Template
- created:
- version: v2.0
- by: themekiosk
- email: themekiosk@zoho.com
Outsider Redraft is responsible HTML5 template usable as a personal blog or personal magazine.
Structure
Files Structure
Once downloaded, unzip the compressed folder to see the structure:
outsider_redraft/
├── css/
│ ├── bootstrap.css, bootstrap.min.css
│ ├── chocolat.css
│ ├── main.css
│ ├── materialdesignicons.min.css
│ └── slick.css
├── fonts/
│ ├── materialdesignicons-webfont.eot
│ ├── materialdesignicons-webfont.svg
│ ├── materialdesignicons-webfont.ttf
│ ├── materialdesignicons-webfont.woff
│ └── materialdesignicons-webfont.woff2
├── img/
│ ├── chocolat - controls for chocolat.js lightbox
│ └── *images - placeholders
├── js/
│ └── vendor/
│ └── *for detailed list see js section
│ ├── contact.js
│ └── main.js
├── php/
│ └── contact-form.php
├── 404.html
├── about.html
├── about-cd.html
├── archive.html
├── archive-cd.html
├── cards-page2.html
├── category.html
├── category-cd.html
├── contact.html
├── contact-cd.html
├── index.html
├── index-cards.html
├── index-fc.html
├── index-gradient.html
├── page2.html
├── post.html
├── post-cd.html
├── post-sidebar.html
├── styleguide.html
├── tag.html
└── tag-cd.html
* cd = card design; fc = featured content
Html Structure
This theme is a responsive layout based on Bootstrap 4 Framework. All information within the main content area is nested within a body tag. The general template structure is the same throughout the template.
General structure:
CSS Structure
All css files are located in css folder:
- bootstrap.css, bootstrap.min.css - Bootstrap 4 (v4.0.0-alpha.6) Framework base stylesheets.
- chocolat.css - Chocolat.js Lightbox css styles.
- main.css - base file that includes general styles for pages.
- materialdesignicons.min.css - Material Design Icons css style file
- slick.css - stylesheet for Slick: Touch enabled jQuery plugin that lets you create responsive carousel slider
main.css
This file includes css styles for pages. If you want to change style, colors, margin, padding, font settings etc. of the template you should start from this file.
/* Table of Contents
=================================================== */
/*
* Default
* Preloader
* Typography
* Components
* Breadcrumb
* Buttons
* Card
* Forms
* Nav
* Navbar
* Overlay Figure
* Pagination
* Utility: Backgrounds
* Layout
* Header
* Main
* Section
* Sidebar
* Search-wrap
* Social List
* Masonry
* Post
* Widgets
* Comments
* Google Map
* Archive
* Footer
* Lightbox
* Scroll Top
* Navbar brand sprite
*/
bootstrap.css, bootstrap.min.css
Bootstrap 4 (v4.0.0-alpha.6) Framework base stylesheets. Includes all components and elements, typography, lists, buttons, button groups, navigations, navbars, forms, labels, pricing tables and much more. This stylesheet must always be included! We recommend minified version foundation.min.css for use. For development you can use foundation.css.
JavaScript
All JavaScript files are located in js folder.
- vendor/
- bootstrap.js, bootstrap.min.js - Bootstrap 4 JavaScript library.
- imagesloaded.pkgd.min.js - Imagesloaded detect when images have been loaded.
- jquery.infinitescroll.min.js - Infinite Scroll jQuery Plugin jQuery plugin for infinite scroll.
- isotope.pkgd.min.js - Isotope Filter & sort magical layouts.
- jquery.chocolat.min.js - Chocolat.js jQuery lightbox plugin
- jquery.tweet.min.js - Tweet.js Latest Tweets plugin.
- jquery.validate.min.js - jQuery Validation Plugin makes simple clientside form validation easy.
- jquery-3.2.0.min.js - jQuery is a fast, small, and feature-rich JavaScript library.
- slick.js - Slick: Touch enabled jQuery plugin that lets you create responsive carousel slider
- tether.min.js - Tether.js: A client-side library to make absolutely positioned elements attach to elements in the page efficiently.
- contact.js - Contact Form JavaScript file
- main.js - Custom script, initialize all necessary scripts and functions
- mymap.js - Script to run Google map
Installation
Getting the Template Online
Warning! This is not a Wordpress template. Running, uploading or inserting in Wordpress CMS will have no effect.
This is HTML5 template, you don´t need create a database. Just simply upload to the server.
It's important to understand that you must either have your own server space or use someone elses. The server space can be purchased at many different places around the internet. You need somewhere to put the files that you purchased so others can find them online.
The template folder will have several files with the extension labeled .html. This is where all your content will. It's very important to keep the css and js-plugin folders with the HTML or the HTML will not look how the design is meant to look. Along with the HTML files, you will also have four additional folders to upload: css, js, fonts, and images.
Start your FTP client (Total Commander or FileZilla) and login. Login to your server. You will need your server name (often times this will be your domain name), username, and password that you setup with the hosting company.
Development on local environment:
- php Contact Form and Twitter Feed working only in server environment with installed php.
Load your content on server or use webserver on your machine. - Infinite scrolling on most browsers not works on local environment (file:// or C:/). You see console error: XMLHttpRequest cannot load file... Cross origin requests are only supported for HTTP. Use Firefox or Live preview function in your editor. On server (http://) works infinite scrolling correctly.
Customization
Layout Settings
Select your layout: Clean design or Card design.
Choose home page heading variant:
- Static image
- Home Slider
- Home Gradient
Insert your content, write your text, change photos and images links.
Fonts
Google fonts
Free Google fonts: Inconsolata and Merriweather
Inconsolata is default body font. Used for all tags p, address, ul etc. in template (paragraphs, text, letters...)
Merriweather font is used for Headings h1,h2, ... h6.
If you need title with Inconsolata font, use class .monospace
Default Merriweather Heading
Inconsolata Heading
Lorem ipsum dolor sit amet, consectetur.
- lorem
- ipsum
Important: Google Fonts are used as hosted libraries.
The recommended way to use all Google Font´s is by linking to the web font hosted on Google Fonts.
Material Design Icons
Default Icon font for our template is Material Design Icons
Basic structure: <i class="mdi mdi-facebook"></i>
Replace icon name (icon name = css class), example mdi-facebook, with the actual icon name you wish to display, example mdi-home. Then your new icon is <i class="mdi mdi-home"></i>
Navbar
Template uses navbar fixed on top. After scroll his background changes from transparent to white and color from white to black.
Navbar brand
Default navbar brand text:
Outsider
Adding images to the navbar brand:
or use sprite image:
Why sprite?
With sprite and css transforms we can see another image variant on the same place. Basic idea is to create one big image that contains two small images placed one above the other.
Best formats are .png and .svg. Using css transform we move image verticaly. You can see only one half of the picture. If navbar has class navbar-inverse (is transparent) then you see white title. After scroll if navbar has class navbar-light (is white) you see black (blue or another color) title.
You can edit predefined transformation for sprite in main.css file, find lines at the end:
/* Navbar brand sprite
=================================================== */
.navbar-brand.sprite {
height: 30px;
overflow: hidden;
}
.navbar-brand.sprite img {
height: 60px;
-webkit-transform: translateY(-3%);
-ms-transform: translateY(-3%);
transform: translateY(-3%);
}
.navbar-light .navbar-brand.sprite img {
-webkit-transform: translateY(-51%);
-ms-transform: translateY(-51%);
transform: translateY(-51%);
}
Infinite scrolling
Template uses infinite scrolling for automatic content (posts) loading.
We may use two variants: full automatic loading on scroll or loading after Load more button click.
Automatic loading: Script detect link to next page (example: page2.html). This link is hidden and content is loaded. Last page (example: page22.html) does not have this link.
Load more button: Link to next page - Load more button - is visible and content is loaded after click.
How to set this option? Use id="load-more" for pagination link.
For further documentation and setting information, see: Infinite Scroll jQuery Plugin
Contact Form / Newsletter Form
This template contains fully working contact form and newsletter form. Forms used:
-
jQuery Validation Plugin form validation library (must be included before end body tag in all html files where you need form, example contact.html or another pages with form)
-
script
contact.js(must be included before end body tag)... ...