How to create a custom theme in Bagisto 2.0

Updated 12 January 2024


Welcome to our new blog for how to create a custom theme in Bagisto 2.0.

Our improved theme design enhances the look and feel of the store’s interface. By giving users complete control over themes, we enable seamless customization. This feature allows users to add images, text, and links to any section of their store with ease.

In the below screenshot, this is our default storefront and we are going to change its Content , Carousel, and CSS in our custom theme design.

So firstly, you need to create a package for your new theme, as you want to display your front end. You just clone the Shop package and modify the changes requested for your new one As we have created by the name of Store now change the namespaces according to this package because it was quite important and make the necessary steps to register your module in the composer.json, config/concord.php, and config/app.php file which is been presented in the root directory of Bagisto. now run the below command to register the package.

Now you also need to do the vite setup inside your new package in the vite.config.js file as shown below 

To configure the store theme in Bagisto, follow these steps:

  1. Go to your project’s root directory and locate the Config folder. Inside the Config folder, you will find a file named themes.php                                                             

Open the themes.php file to examine its contents. This file contains all the necessary information for creating a custom theme in Bagisto.

  1. Add a new theme entry to the themes array in the themes.php file as shown in the below file.

So now install the Node modules inside our new package as we have created by the name of Store. To install the node modules hit the below command inside a Store package

So after hitting these commands node modules get installed and the build is also been created as shown in the below screenshot.


So Now you just need to override the view files inside your new package.So copy the file from your old package and paste it into the new package, following the same path structure. Like this

Now load the views from the package and apply the below code in the boot method inside the service provider.

So once the provider entry is successfully added, please publish your override files inside the core files with the help of the command 

Now you have the option to select the themes from the admin end inside the channel section. Just change the theme.


  1. After changing the theme from the channel section, you can add your theme content (e.g., product carousel, static content, slider carousel, category carousel, footer links, service container) to your theme. 

 So After completing all the steps, we have successfully updated our new theme on the front of our website. And we have updated some of the changes in our blade file and changed the CSS, Carousel, and Content and it will look something like this.


By following these steps, you can create a customized theme in Bagisto 2.0, which will enhance the visual appeal of your e-commerce store.

So I hope this documentation will help you create or customize themes in Bagisto 2.0.

Thanks for reading this blog. Please comment below if you have any questions. Also, you can Hire Laravel Developers for your custom Laravel projects. Please explore our extensions.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.

Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home