Custom Themes
MineTrax supports custom themes. This guide will walk you through the process of installing and activating a custom theme for your site.
Install Theme
1. Download Theme
Download the theme zip file from the source you got it from.
The theme directory structure should look like this:
my-theme-v4/
├── how-to-install.txt # (optional) Instructions for installing the theme.
├── resources/
│ ├── my-shiny-theme/
│ │ ├── css/
│ │ ├── js/
│ │ ├── markdown/
│ │ ├── views/
├── public/
│ ├── build/
│ │ ├── my-shiny-theme/
│ │ │ ├── assets/
│ │ │ ├── manifest.json
│ ├── theme-assets/ # (optional) If additional assets required by the theme.
│ │ ├── my-shiny-theme/
│ │ │ ├── images/
2. Upload Theme to MineTrax
- Connect to your server using any SFTP client like Bitvise SSH Client or MobaXterm, or any other SFTP client using your SSH credentials.
- Navigate to your MineTrax installation directory. Usually, it's located at
/var/www/minetrax. - Upload the theme zip file to some temp directory and extract it there.
- Copy the
resources/my-shiny-themedirectory to theresourcesdirectory of your MineTrax project. - Copy the
public/build/my-shiny-themedirectory to thepublic/builddirectory of your MineTrax project. - Copy any additional assets if theme requires. Eg:
public/theme-assets/my-shiny-themedirectory to thepublic/theme-assetsdirectory of your MineTrax project.
After uploading, the directory structure will look like this:
/var/www/minetrax/
├── resources/
│ ├── my-shiny-theme/
│ │ ├── css/
│ │ ├── js/
│ │ ├── markdown/
│ │ ├── views/
│ ├── default/ # Default theme that comes with MineTrax.
│ │ ├── css/
│ │ ├── js/
│ │ ├── markdown/
│ │ ├── views/
├── public/
│ ├── build/
│ │ ├── my-shiny-theme/
│ │ │ ├── assets/
│ │ │ ├── manifest.json
│ ├── theme-assets/ # (optional) If additional assets required by the theme.
│ │ ├── my-shiny-theme/
│ │ │ ├── images/
...
3. Update .env variable
Open your .env file and update the APP_THEME variable to the name of your new theme.
For example, if the theme you uploaded is named my-shiny-theme update the APP_THEME variable like this:
APP_THEME=my-shiny-theme
Finally run the following command so that the changes are reflected in the application:
cd /var/www/minetrax
sh update.sh
Visit your site and you should see the new theme applied.
Some themes may require additional steps to be followed (eg: uploading some file to public/theme-assets folder). Check the theme documentation for more information.
Develop Custom Themes
Check out the guide on how to develop your own custom themes for MineTrax here.
or join our Discord to find new themes or ask for theme development services.