Table of Contents
- This page is deprecated. New documentation can be found here: https://github.com/robiso/wondercms/wiki/Custom-modules
- How to create a custom repository
- Install theme or plugin to your website
- How to send a theme/plugin update to users or your website
- How share your theme/plugin
- Example projects to fork/clone
- Start creating your theme by forking/copying the default theme called Essence
- Start your plugin by forking Simple blog
- Troubleshooting
This page is deprecated. New documentation can be found here: https://github.com/robiso/wondercms/wiki/Custom-modules
Custom repositories are a way of adding, creating and sharing themes/plugins
The "Custom repository" field in the Settings->Themes or Settings->Plugins also enables you to install a theme (or plugin) that is not listed in the official WonderCMS repository.
Repositories can be used to serve your theme or plugin to other users. There are some examples which can be copied at the bottom of this document with some more helpful links.
How to create a custom repository
As a plugin or theme maintainer, a few files must be provided for the theme/plugin to be correctly installed for WonderCMS users.
-
Custom theme repository requirements
Your repository must include the following files:
- theme.php
contains your theme and all WonderCMS theme elements - style.css
must be inside a /css folder - version
3.0.0 - summary
short summary - preview.jpg
compressed screenshot of your theme
- theme.php
-
Custom plugin repository requirements
Your plugin repository must include the following files:
- plugin-name.php
contains your plugin code- IMPORTANT: plugin-name.php must be the same as the plugin folder name
- version
3.0.0 - summary
short summary - preview.jpg
compressed screenshot of your plugin
- plugin-name.php
Install theme or plugin to your website
After finishing creating a custom theme/plugin repository, login to your website and open Settings -> Themes (or Plugins) and scroll to the bottom.
Paste your repository URL (example: https://github.com/yourUsername/yourThemeOrPlugin) and click "Add".
Your theme/plugin should be now listed in the Settings -> Themes/Plugins section.
How to send a theme/plugin update to users or your website
- Commit new changes to your theme/plugin files on Github.
- Change the version file (eg: from 3.0.0 to 3.0.1) after you've confirmed everything is working.
- Users will receive an "Update" notification in their Settings panel.
- This will happen either after 24 hours OR when the users manually click the "Check for updates" button in the Settings panel.
- When "Update" is clicked, all the users existing theme/plugin (from your changed files) will be overwritten with the latest ones from your theme/plugin repository.
How share your theme/plugin
- After you've created a Custom repository as shown above, simply share the link.
- Share your creation with our community.
- If you're confident in your theme/plugin, you can create a pull request to the official WonderCMS theme/plugins repository and CDN with your theme/plugin URL.
Example projects to fork/clone
-
Start creating your theme by forking/copying the default theme called Essence
-
Start your plugin by forking Simple blog
Troubleshooting
- If you run into an error "Missing version file" when trying to add a custom repository, simply re-name your theme/plugin GitHub branch from "master" to "main" to fix the issue.
Intro
- Home
- Demo
- Download
- One step install
- Requirements
- 5 file structure
- List of hooks
- Included libraries
- Create theme in 8 easy steps
- Create a plugin
- Custom modules
- Translations
- All security features described
Basic how to's
- Backup all files
- Change default login URL
- Change default password
- Create custom page template
- Create new editable areas or editable blocks
- Edit 404 page
- Get data from database
- Set data to database
- Hide page from menu
- Caddy web server config
- IIS server config
- NGINX server config
- Login
- Recover login URL
- Reset password
- Restore backup
- Update
- PHP built in server
Themes
- Create theme in 8 easy steps
- Add favicon
- Theme tags
- Update theme to work with WonderCMS 2.0.0
- Update theme to work with WonderCMS 3.0.0
- Share your themes with Custom modules
Plugins
- Quick intro on creating plugins and List of hooks
- Share your plugin with simply with Custom modules
Security
- All security features described
- Add SRI tags to your theme libraries
- Always redirect to https and www
- Additional security configuration(s)
- Add SRI tags to your theme libraries
- Better security mode (HTTPS and other features)
Features description
- One click update
- Optional: functions.php file
- Default database.js
- Allowed extensions file types for uploads
- Login URL doesn't work - 404
- 500 internal server error
- Persistent "New WonderCMS update available" message
- URLs mailformed on Windows IIS
- Other errors
Still need help?
- Ask a question or make a request in the community.
- Official website