How to customize the Opencart homepage? version 4

In this Opencart guide, we are showing how to customize the Opencart 3 homepage and make changes to layouts, and modules, edit homepage content in Opencart 3.

As the homepage of Opencart is made of modules, to change home page layout in opencart for demo data here are the steps:

Go to admin >> Design >> Layouts >> Edit the Home Layouts >> you will see similar like below:

Opencart homepage layout

You can see which modules are active on the homepage, in the demo data of Opencart 3 there are three modules which are active only in the Content Top layout. These three modules in Opencart are Slideshow module, Featured products module, and Carousel module. You can add and remove the modules as per your requirement in the layouts.

Where can you find modules in Opencart 3?

Go to Admin >> Extensions >> Extensions >> Choose the Extension type “Modules”, you will see all the modules here. Now see for the Slideshow module and edit it. You will find the settings for the Slideshow like in the image below:

Slideshow settings of Opencart

You can select the banner, give width and height and change the status. Likewise, you can make changes in the Featured products module and Carousel module. Similarly, you can activate the modules that you want to show on the home page, enable it. Then, add in the layouts. You can see the following video to install the module, configure it, uninstall it and remove it:

If you want to understand more about the layouts and positions then here are opencart layouts explained video:

Once you see the videos above then you understand how you can install, configure, uninstall and remove the module and understand how layout and position work in Opencart 3 by which you can make changes to any Opencart page and customize as per your need.

Please let us know if you have any questions or concerns. Please don’t forget to post your questions or comments so that we can add extra topics. You can follow us at our twitter account @rupaknpl and subscribe to our YouTube channel for opencart tutorials.

Previous articleOpencart 4 Events by Examples – Opencart Tutorial
Next articleUnlock Global Opportunities with Google Market Finder
Author of three Opencart book. The recent Opencart 4 book is at https://amzn.to/4dOlbOR

2 COMMENTS

  1. How do you resize the company logo on the default template? Currently it is set to 200px and that is annoying.

    I can see the twig file for the main template that calls the logo and they are using some stupid columns system, which is total overkill for a logo resize. It’s as if the programmers are completely out of touch with basic design necessities.

  2. There are multiple ways, but if you are thinking of changing directly in the default theme then one of the quick fix is by changing the max-width of logo. For that you can open catalog/view/stylesheet/stylesheet.css and find following code

    #logo img {
    max-width: 200px;
    }

    and you can remove or update that value as well or change to following:

    #logo img {
    max-width: inherit;
    }

    After changing don’t forget to clear the cache, and modifications
    ——–
    If you don’t want to change the stylesheet and want to handle from the backend then log in to Admin >> Design >> Theme Editor >> Choose Default >> common >> click footer.twig and just before the closing add following CSS.

    #logo img{max-width: inherit;}

    ——-
    Above options may get removed when there is an upgrade in Opencart. So, for that you can use Opencart module like this https://webocreation.com/how-to-add-an-analytics-extension-in-opencart-4-third-party-js-free-opencart-extension/ and add the style css in there.

LEAVE A REPLY

Please enter your comment!
Please enter your name here