Themes Coder Katora HTMLDocs
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.