Advanced Topics
Discover new possibilities...
🌈 Explore the potential of smart contracts.
Do you want to change the colors or layout of any of the pages included in the plugin? We got you covered, you can replace the templates of the plugin inside your active WordPress theme without the need of changing the plugin code.
WP Smart Contracts uses Mustache as a templating system for both PHP and Javascript templates.
Those templates are located in the plugin folder, the exact location depends on what Skin are you using:
Default Skin
wp-content/plugins/wp-smart-contracts/views
Light 1
wp-content/plugins/wp-smart-contracts/skins/wpsc-theme-light-1
Light 2
wp-content/plugins/wp-smart-contracts/skins/wpsc-theme-light-2
Dark
wp-content/plugins/wp-smart-contracts/skins/wpsc-theme-light-3
You must not change directly those mustache fields, but you can make a local copy in your theme, for this do the following:
For example, if you want to change the ICO brand template, do the following:
cd [your wp folder root] mkdir wp-content/themes/[your theme name]/wpsc-views cp wp-content/plugins/wp-smart-contracts/views/ico-view-brand.mustache wp-content/themes/[your-theme-name]/wpsc-views/ico-view-brand.mustache
Then, edit the new file “ico-view-brand.mustache” in your themes folder
Please remember to change "[your wp folder root]" and [your-theme-name] accordingly