DEVELOPER GUIDES

Build our first theme:

Make "info.json"

-What is "info.json"

The file info.json is a particular file related to themes. This json file contains all information about the theme: name, author, version...


Make a new folder on your pc and call it like you want.



Next inside the new folder make a new file, call it: "info.json":



Edit the file with your favourite editor and copy or write the below things.

What are these things?

  • "theme_name": The theme name
  • "theme_author": Author name
  • "theme_zip_file_name": The .zip file of the theme who contain our theme files
  • "my_cms_version": The supported version of mycms
  • "theme_error_page": Name of the error page without extension
  • "theme_maintenance_page": Name of the maintenance page without extension
  • "theme_version": The theme version
  • "theme_languages": All the languages files inside the "languages" folder in our theme, separated by a comma without extension

Now edit the info json like this, add author name, theme name, error and maintenance page name...



I haven't filled "theme_zip_file_name" and "theme_languages" because I insert them later.

Make a new folder and call it like "theme_name", but all lowercase and if you have used spaces convert them in underscore.



Next Step - Build our first theme (Structure of the new theme)