christmas sale
40%
discount for lifetime!
See plans down arrow

Create Custom Layout

Create your own lagom style

There is a special developer-friendly system of creating your own layouts introduced on the Lagom theme. Follow the below steps and enjoy your personal Lagom layout.

Create New Layout

Prepare the files

  1. Copy the catalogue of an existing layout which you are going to modify, you will find it here: templates/lagom/core/layouts/ name it as you wish, but do not use any special characters or leave free spaces.

  2. In the catalogue of your layout, find a file with a .tpl extension. Name it in the very same way as the the layout catalogue.
    Screen

  3. Open the layout.php file, located in templates/lagom/core/style/newstyle Change the name key value to you own name.
    Screen

  4. Since that moment, your layout will be available at the theme manager and the theme switcher.

Variables at the layout.php file

Screen

  1. displayName - name of the layout
  2. version - the layout current version number
  3. preview - path to the theme thumbnail visible at the theme manager and the theme switcher tools
  4. order - the order of the layouts displayed in the theme manager
  5. Variables - extra variables used in the template
  • bodyClass - additional names of classes displayed at body
  • type - the layout type, choose from: default, condensed, condensed-banner , navbar-left
  • modules - table with the module names where default notification boxes are skipped at the product details page

Custom integration

TIP

Every layout can have your own header and footer integration added in an easy and trouble-free way as well as your own code displayed at <head> without fear of overriding them by a theme update. Detailed description of custom integrations can be found here

WARNING

Removing any of the table elements may lead to numerous errors and interrupt fluent management of the theme or completely unable its usage.