Registering a new theme

Registering a new theme is fairly simple. To start you copy one of the existing themes and rename it to your new theme name.

After that you can load it up in your loader file by using the following code:

$reactor->site->themes["jellyfish"] = array("name" => "Jellyfish",
"author" => "Patriek Jeuriens",
"file" => "theme/" . SITE_THEME . "/styles/colors/jellyfish.variables.css",
"description" => "Transparent theme with blue accents.");

Now the theme can be selected by the administrator in the configuration screen. If you want switch your new theme to the default you can set:

$reactor->defaults->theme = "slate";

Description of the main PHP Engine loop.
Protected pages are page names that cannot be used for normal pages.
Learn how to create new plugins from scratch.
Learn how to build new themes from scratch.
Register new scripts and stylesheets.
Register new types to the core.
Register a new theme to the core.
We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.
Do you want to accept tracking cookies?