Themes Coder Katora HTMLDocs
Getting started

Introduction

Katora is a multipurpose shopping template built with Bootstrap 4. It gives you a complete storefront as plain HTML, Sass and JavaScript that you can host anywhere, plus a set of email templates.

Press / anywhere to search these docs, or use View all on one page in the sidebar to print or save the whole guide as a PDF.

What's in the package#

FolderWhat it is
website/The storefront: 3 home pages, 5 shop pages, 5 product pages, cart, checkout, wishlist, compare, account, blog, about, contact and legal pages
email-templates/Sign-up, password reset, new arrival and sale emails

Paths in this guide are relative to the website/ folder unless they start with email-templates/.

Features#

  • Three home page designs, each with its own header, footer, slider and banners
  • Shop pages with grid, list and sidebar layouts, and several product page styles
  • Login, sign-up, profile, orders, order detail and shipping address pages
  • Right-to-left layout and a boxed layout
  • Six colour skins
  • Newsletter popup and product quick view
  • Fully responsive

What you need#

  • A code editor, for example VS Code or Sublime Text
  • A modern browser such as Chrome or Firefox for testing
  • Node.js only if you want to edit the Sass files (see Installation)
  • An FTP client such as FileZilla, or your host's file manager, to upload the site

Basic HTML and CSS knowledge is enough to customise the template.

Keep a copy of the original files before you edit. A broken tag or a missing closing div can break the whole layout, and support doesn't cover faulty customisation.

Getting started

Installation

The pages work as they are: open website/index.html in a browser, or upload the contents of website/ to your host. The compiled CSS is already in website/css/. You only need the steps below if you want to edit the Sass files and recompile.

The website folder

Set up the Sass build#

The build uses Gulp 3 and node-sass 4. These older tools only run on Node.js 10 or 11; on newer versions npm install or gulp fails (for example with primordials is not defined). Install Node.js 10 alongside your current version with a version manager such as nvm (macOS, Linux) or nvm-windows:

nvm install 10
nvm use 10

Then, in a terminal:

  1. Go to the website folder:

    cd website
    
  2. Install the packages (Bootstrap, jQuery, Gulp and Sass):

    npm install
    
  3. If Sass complains about your environment, rebuild it:

    npm rebuild node-sass
    

Run the development server#

npx gulp

This compiles scss/ into css/, opens the site in your browser with Browsersync (usually http://localhost:3000) and keeps running. Saving a .scss file recompiles the CSS and updates the page; saving an HTML file reloads it. Press Ctrl+C to stop.

There is no separate production build: Gulp writes the final CSS straight into css/. Upload the website/ folder (without node_modules/) when you're done.

Getting started

Files and folders

website/
├── *.html            the pages
├── contact.php       contact form mailer (see Layout options)
├── css/              compiled CSS and the colour skins
├── scss/             Sass sources
├── js/               scripts
├── revolution/       Slider Revolution
├── fonts/            Montserrat and Rajdhani font files
├── images/
├── gulpfile.js       Sass build and local server
└── package.json

Pages#

PagesFiles
Homeindex.html, index-2.html, index-3.html
Shopshop-page1.html to shop-page5.html
Productproduct-page1.html to product-page5.html
Cart and checkoutcart-page1.html, cart-page2.html, checkout.html, thankyou.html, wishlist.html, compare.html
Accountlogin-page1.html, login-page2.html, signup.html, profile.html, orders.html, order-detail.html, shipping-address.html, change-password.html
Contentabout-page1.html, about-page2.html, blog-page1.html, blog-page2.html, blog-single-post.html, contact-page1.html, contact-page2.html
Legal and errorsprivacy.html, refund.html, term.html, 404.html

CSS#

css/style.css is the main stylesheet, compiled from scss/style.scss; every page loads it. It already includes the responsive and RTL styles (rtl.css and responsive.css are separate copies you don't need to load).

blue.css, green.css, navy-blue.css, pink.css, red.css and yellow.css are the colour skins; see Colour skins.

Sass#

scss/style.scss imports the template's variables, then Bootstrap from node_modules, then the template's own partials:

FolderContents
private/_variables.scss (colours, fonts), _base.scss, _button.scss, _mixins.scss, _animation.scss
components/Banners, category panel, modals, pagination, product cards, Slider Revolution and Slick carousels
layouts/header/_header-one.scss to _header-three.scss (one per home page), sticky and mobile headers
layouts/footer/_footer-one.scss to _footer-three.scss and the mobile footer
layouts/sidebar/Account and blog sidebars, shop filters and shop top bar
pages/One file per page type: home, shop, product, cart, checkout, account pages, blog, about, contact, 404
api/Styles for third-party plugins such as Fancybox
_responsive.scssAll responsive rules
_rtl.scssRight-to-left rules

To add your own partial, create it in the right folder and add an @import line to style.scss.

JavaScript#

  • js/scripts.js: the template's scripts (menus, carousels, quick view, popups and the demo switcher) with jQuery, Bootstrap and the plugins bundled in
  • js/mc-validate.js: newsletter form validation
  • revolution/js/: Slider Revolution

Email templates#

email-templates/ has six ready HTML emails: signup.html, forgot-password.html, new-arrival.html, amazing-deals.html, overall-sale.html and winter-sale.html. Each is a single HTML file with its styles in the page (inline and in a <style> block), and they load the Rajdhani font from Google Fonts.

Customise

Customisation

Change the template through its Sass variables, then recompile with Gulp (see Installation).

Brand colours#

Open scss/private/_variables.scss. The two main colours are:

$primary:   #333 !default;     // main colour of the website
$secondary: #c29958 !default;  // buttons and highlights

Change them, save, and the CSS recompiles. $primary-dark and $primary-light just above them are the hover shades.

Colour skins#

Besides the default gold, css/ has six ready-made skins: blue.css, green.css, navy-blue.css, pink.css, red.css and yellow.css. Each is a complete stylesheet.

The colour switcher on the demo adds the chosen skin after style.css while you browse. To use a skin on your site, add its <link> after style.css in the <head> of every page:

<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/blue.css">

The skins are pre-built and the Gulp build doesn't regenerate them. If you change the Sass, use your own colours in _variables.scss instead of a skin.

Fonts#

The website uses Montserrat, from the files in fonts/. The families are set in scss/private/_variables.scss:

$font-family-sans-serif:     'Montserrat-Regular', sans-serif !default;
$font-family-base-bold:      'Montserrat-Bold', sans-serif !default;
$font-family-base-extrabold: 'Montserrat-ExtraBold', sans-serif !default;

The @font-face rules for these files are in the same file. To use another font, add its files (or a Google Fonts link in the page <head>) and change these variables.

Icons#

The template uses Font Awesome 5 icons, loaded from Font Awesome's CDN in each page's <head>:

<i class="fas fa-shopping-cart"></i>

Any icon from the free Font Awesome 5 set works.

Customise

Layout options

The switcher on the demo pages toggles these options so you can preview them, but it doesn't save anything: to keep an option, put it in your HTML.

Right-to-left (RTL)#

For Arabic, Hebrew, Urdu and other right-to-left languages, add the bodyrtl class to <body>:

<body class="bodyrtl">

The RTL rules are already compiled into style.css, so nothing else is needed. Remove the class to go back to left-to-right.

Boxed layout#

The site is full width by default. For a boxed layout, add boxed to the <html> tag:

<html class="no-js boxed" lang="en">
Boxed layout

The pages ship with lang="zxx" on <html> (a placeholder for "no language"). Change it to your site's language, for example lang="en", so browsers and search engines read the pages correctly.

Mega menu#

The headers include a mega menu that works like a site map: shoppers see your categories and pages at a glance. Copy one from any home page header and change the links.

Mega menu

Popups#

The storefront has two modals:

  1. Newsletter: a subscribe popup that opens on the home page (#newsletterModal, near the end of index.html). Delete the block to stop the popup.
  2. Product quick view: opens from a product card, with images, price, options and an add-to-cart button.
Newsletter popup
Product quick view

Their styles are in scss/components/_modal.scss.

Contact form#

The contact pages' forms post nowhere yet (action="#"). contact.php is a starting point for sending the message by email, but it needs two changes before you use it:

  1. Send to your own address. As shipped it emails the address the visitor typed (mail($email, …)); replace $email in the mail() call with your address, and set $from to an address on your domain.
  2. Clean the input. Escape the fields before putting them in the email (for example htmlspecialchars()), and strip line breaks from the subject.

Then point the form at it with action="contact.php" method="post". Your host must allow PHP's mail(); if it doesn't, use a form service instead.

Reference

Changelog

Version 1.0 (14 November 2019)#

  • First release
Reference

Support

Stuck on a step, or found something that doesn't work as this guide says? We're happy to help.

Get help#

Before you write#

Please include these, so we can answer in one go:

  1. Your purchase code, or the email you bought with.
  2. Which part you're setting up: the admin panel or website, the customer app, or the delivery or vendor app.
  3. The step in this guide where it stopped working, what you expected and what happened instead.
  4. Screenshots of any error, and the console or build output if a build failed.

What item support covers#

Support covers questions about how the item works, fixing bugs in it, and help with the third-party assets it includes. Installing it on your server for you, custom changes and new features aren't part of item support, but you're welcome to ask about them.