O'Reilly logo

OpenCart Theme and Module Development by Rupak Nepali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Checklist for the header section

The checklist for the header consists of what we should not forget to include in the header while creating the new theme:

Take care of the direction and the language with <html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">. The direction and language are controlled from the language folder file. For example, for the English language, you can see the settings at catalog/language/english/english.php. At the top, you will see code like this, which controls the direction and the language:

<?php
// Locale
$_['code']                  = 'en';
$_['direction']             = 'ltr';

When the document is rendered, you will see something like this code:

<html dir="ltr" lang="en">

Each page title is different from the others, so we should take ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required