Introduction

Get started with Thedir, Responsive Website Template for building responsive, mobile-first sites, with Bootstrap and a template starter page.

Thedir is a Static HTML Template

For the time being, we do NOT offer any tutorials or any other materials on how to integrate Thedir with any CMS, Web Application framework (including Angular JS, Ruby on Rails and others) or any other similar technology. However, since Thedir is a static HTML/CSS and JS template, then it should be compatible with any backend technology.

Quick start #

There are two ways to run any GetBootstrap Themes on your device:

  1. Gulp - this is the most recommended way of using GetBootstrap templates.
  2. Localhost - Using a localhost server is extremely vital in any HTML template, as it boosts the page load. For this reason, any template or website might work slowly or may not even work at all without localhost. Opening Thedir in localhost server should not give you any problems.

    In computer networking, localhost is a hostname that means this computer. It is used to access the network services that are running on the host via its loopback network interface. Using the loopback interface bypasses any local network interface hardware.

    The local loopback mechanism is useful for testing software during development, independently of any networking configurations. For example, if a computer has been configured to provide a website, directing a locally running web browser to http://localhost may display its home page.

    Just so you know, Ajax also does not work without a localhost server. The whole point of Ajax request is to fetch data from one of these computers, which has to be listening in for specific network packages.

Starter template #

Be sure to have your pages set up with the latest design and development standards. That means using an HTML5 doctype and including a viewport meta tag for proper responsive behaviors. Put it all together and your pages should look like this:

										
											<!doctype html>
												<html lang="en">
												<head>
												  <!-- Title -->
												  <title>Hello, world!</title>

												  <!-- Favicon -->
												  <link rel="shortcut icon" href="favicon.ico">

												  <!-- Required meta tags -->
												  <meta charset="utf-8">
												  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

												  <!-- CSS Thedir Template -->
												  <link rel="stylesheet" href="../style.css">
												</head>

												<body>
												  <h1>Hello, world!</h1>

												  <!-- JS Global Compulsory -->
													<script src="../vendors/jquery.min.js"></script>
													<script src="../vendors/popper/popper.js"></script>
													<script src="../vendors/bootstrap/js/bootstrap.js"></script>
													<script src="../js/app.js"></script>
												</body>
										
									

That's all you need for overall page requirements. Visit the Bootstrap's Layout docs our official examples to start laying out your site's content and components.

Responsive meta tag #

Thedir is developed mobile first , a strategy in which we optimize code for mobile devices first and then scale up components as necessary using CSS media queries. To ensure proper rendering and touch zooming for all devices, add the responsive viewport meta tag to your <head>.

										
											 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
										
									

You can see an example of this in action in the starter template.