Homepage Template

To edit Lagom modern homepage template you need to edit the .tpl file, to customize content displayed on this page. In future Lagom releases we plan to simplyfy this process by adding the page template manager, where all data could be changed from our RS Themes addon.

Customize Homepage Template

  1. Go to \templates\lagom\core\pages\homepage
  2. Rename the modern folder to something else, for example rsstudio, so it won't be overwritten by future updates.
  3. Go to rsstudio folder and open pageoption.php, rename the template, like in example below
return [
    'display_name' => 'RS Studio',
    'description' => 'RS Studio - Homepage',
    'preview' => 'thumb.png',
    'variables' => [
        
    ],
];
  1. Open homepage.tpl file.
  2. Assign correct product group IDs pidin the below array. Product title, description and pricing will be pulled automatically from your WHMCS system.
{assign var=productGroupId value=[

    [
        'pid' => 1,
        'icon' => 'vps-hosting.tpl',
        'featured' => false
    ],
    [
        'pid' => 2,
        'icon' => 'game-servers.tpl',
        'featured' => true
    ],
    [
        'pid' => 6,
        'icon' => 'dedicated-servers.tpl',
        'featured' => false
    ]
]}
  1. To change the product icon, please change the name of the icon in the above array. All our icons are located in this folder: E:\PROJEKTY_FTP\Lagom - whmcs\templates\lagom\assets\svg-icon

  2. Do similiar steps for Testimonials array. Avatars are located in this folder: templates\lagom\core\pages\homepage\modern\assets\img:

{assign var=testimonials value=[
[
    'author'=> 'Sonia Stephens',
    'avatar' => 'homepage-avatar-1.png',
    'website'=> 'lagom.rsstudio.net',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam, doloremque doloribus impedit incidunt minus natus officiis omnis perspiciatis ullam.'
],
[
    'author'=> 'John Doe',
    'avatar' => 'homepage-avatar-2.png',
    'website'=> 'rsstudio.net',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam, doloremque doloribus impedit incidunt minus natus officiis omnis perspiciatis ullam.'
],
[
    'author'=> 'Alexandra Chapman',
    'avatar' => 'homepage-avatar-3.png',
    'website'=> 'rsstudio.net',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam, doloremque doloribus impedit incidunt minus natus officiis omnis perspiciatis ullam.'
],
[
    'author'=> 'James Bond',
    'avatar' => 'homepage-avatar-4.png',
    'website'=> 'lagom.rsstudio.com',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam, doloremque doloribus impedit incidunt minus natus officiis omnis perspiciatis ullam.'
],
[
    'author'=> 'Alice Smith',
    'avatar' => 'homepage-avatar-5.png',
    'website'=> 'lagom.rsstudio.com',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam, doloremque doloribus impedit incidunt minus natus officiis omnis perspiciatis ullam.'
],
[
    'author'=> 'Emily Turner',
    'avatar' => 'homepage-avatar-6.png',
    'website'=> 'lagom.rsstudio.com',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam, doloremque doloribus impedit incidunt minus natus officiis omnis perspiciatis ullam.'
],
[
    'author'=> 'Brandon Quinn',
    'avatar' => 'homepage-avatar-7.png',
    'website'=> 'lagom.rsstudio.com',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam, doloremque doloribus impedit incidunt minus natus officiis omnis perspiciatis ullam.'
]
]}
  1. All translation to this page are located in our custom language files: templates\lagom\core\lang. Learn more how to overwrite language files