GamiPress is designed to work right out of the box with most WordPress themes. It does this by using a template hierarchy system in the same way WordPress does.
- Navigate to the GamiPress templates directory on
- Copy the template file you want to override on
- Make the modifications you want!
Template per type
GamiPress template system includes the ability to place templates by type, so, you can override the
achievement.php template just for one of the achievement type you setup by adding a suffix like
For example, for “My Badges” achievement type that has the slug “my-badges” you need to copy the
/plugins/gamipress/templates/achievement.php file as
GamiPress will priorize template files located on your child theme, following by your theme template and finally on the plugin folder itself.
A template like
earnings.php will be loaded from:
/wp-content/plugins/gamipress/earnings.php(Default template file)
For a template that supports to be loaded per type, will load priorize the most specific one, following the next order:
/wp-content/plugins/gamipress/achievement.php(Default template file)
Add-on’s template files
GamiPress add-ons also make use of this template system and all over-writable templates will be found on the
templates directory inside the add-on folder.
The unique difference is add-ons templates should be located inside the add-on directory too, for example, for Daily Login Rewards add-on, template files should be placed on