Setup a theme
Using the Partners Portal, the developer has the ability to manage the theme's setup. This includes managing the theme's basic information, screenshots, settings, features, custom components, and price. Besides that, the developer can preview
, delete
, publish
, or withdraw any theme.
📙 What You'll Learn
In this article, you will learn how to setup a theme using the Partners Portal. We will also go through the following:
Setting up twilight.json
:::info[About twilight.json]
The Theme's setup can be modified directly from the twilight.json file, which is synced in the Github account connected with the Partners Portal. Explore more on the twilight.json file by reading this guide.
:::
Upon creating / importing a theme, the twilight.json file will be existed in the root directory. Within that file, a developer is able to specify Theme Features, which are the pre-defined theme components, and Theme Components, which are the custom components that are built by the developer. As changes are made to the file, they can be easily synced in the Github account connected to the Partners Portal. Explore more about twilight.json here.
Setup via the Partners Portal
On the Salla Partners Portal dashboard, the developer needs to click on My Themes in the main navigation menu. This will show the list of available themes. The developer needs to first select a theme and then start with the setup process.
There are two parts for Theme setup which are Basic Settings and Listing Information
The Basic Settings will be explained in the coming sections and Listing Information will be further explained in the Theme Publish article.
1 Basic Information
To start click on edit Theme Name to edit Theme name and category
Here you can also update basic information about the Theme, such as Theme icon, name and category.
2 Theme Settings
Personalize the experience via the Theme Settings section by adding custom fields and parameters, which allow for significant control over the Theme.
In there, the drag & drop four fields (String, Numeric, Boolean, and List) bring a unified, straightforward experience for Salla Merchants. A fifth field is Collection, which allows for creating a group of fields that has a mix of the four fields.
3 Theme Features
Mark the Theme features' checkboxes that make up the theme. That said, it is to be customizable from the Merchant side. Explore more about Theme Features here.
4 Extra Features
If the developed Theme provides extra features, add each of them in a separate line in the field available.
5 Theme Components
Add a custom component by clicking on "Add Custom Component". This kind of component is developed by the developer.
Provide the details of the custom component in terms of the title, icon, and file path of the component.
That will result in having the custom component added.
Edit and update the previously inputted basic information of the custom component, such as the title, icon, and file path. The pop dialog will showcase the fields to be updated.
By going to the Settings page of the custom component, several setting fields can be added for that specific component.
The custom components setting page will appear as follows, where it is easy to add the fields that customize the component in a drag & drop way, each with its own properties and functionalities that will be reflected on the Merchant side.
6 Theme Preview
The Partners Portal provides two ways for the developers to test and preview their themes for quality assurance, before submitting a publication request. Explore what is suitable and enjoy the progress so far while developing the theme.
Create a new demo store, unless one is already created, and click on the "Preview Theme".
On the demo dashboard, the theme will then be in the preview mode to which all the changes made to the theme, in terms of components, pre-defined and custom, and settings, will be reflected.
Alternatively, similar to the demo store, send a request to a store URL to install the theme.
That said, the theme can be previewed on that specific store once the theme is installed.
:::tip[A thing to know!]
🖥️ Salla CLI, which is a command-line tool developed by Salla team, can be used to preview a theme.
:::
7 Theme Details
Write details about the Theme to grab the attention of the Merchants, which will be apparent in the Store Themes Marketplace.
10 Theme Preview in Live Store
The developer can allow merchants to view the Theme live on the store.
By adding the live store link in the box, the developer can send an installation request to the store.
11 Theme Installation
The developer can decide whether a theme is installed in all stores or just some of them by setting the theme's availability in the Store Themes marketplace. The theme will be accessible for installation in the Store Themes marketplace for any store if the "Available in all stores" checkbox is selected. On the other hand, deselecting this option will limit the theme's availability to a few URL-selected stores.
By getting here you have successfully completed theme setup.