View Categories

Template Overrides

2 min read

CardanoPress includes many templates for front-end layouts. You can override these safely in your theme or child theme. This gives you control of the look and feel without touching plugin files.

How Overrides Work #

When loading a template, CardanoPress checks the theme folder first. If a matching file exists there, it uses it instead of the plugin default.

  • Plugin templates: wp-content/plugins/cardanopress/templates/
  • Theme override path: wp-content/themes/<your-theme>/cardanopress/

Example Override #

To customise the wallet connect modal:

Copy:
wp-content/plugins/cardanopress/templates/modal-connect.php

To:
wp-content/themes/your-theme/cardanopress/modal-connect.php

Best Practices #

  • Only copy files you need to change.
  • Keep essential data attributes in place for scripts to work.
  • After updating the plugin, compare your overrides with any new template versions.

WASM Update #

No .htaccess rule is needed for WASM in v1.30.0+. WASM is now served remotely. Remove any old MIME rules you may have added.

Template List #

Here’s the full list of templates and their override paths. Place the file in the theme override path with the same folder structure.

Page Templates #

NamePurposePlugin PathTheme Path
Collection.phpDisplays an asset or NFT collection.templates/page/Collection.phpcardanopress/page/Collection.php
Dashboard.phpUser dashboard for CardanoPress features.templates/page/Dashboard.phpcardanopress/page/Dashboard.php
Delegation.phpStake pool delegation flow.templates/page/Delegation.phpcardanopress/page/Delegation.php
Payment.phpPayment form page.templates/page/Payment.phpcardanopress/page/Payment.php
Split.phpSplit payment form page.templates/page/Split.phpcardanopress/page/Split.php

Global Layouts #

NamePurposePlugin PathTheme Path
collection-list.phpList of collection items.templates/collection-list.phpcardanopress/collection-list.php
menu-dropdown.phpProfile menu dropdown.templates/menu-dropdown.phpcardanopress/menu-dropdown.php
modal-connect.phpWallet connect modal.templates/modal-connect.phpcardanopress/modal-connect.php
notices-handler.phpDisplays system notices.templates/notices-handler.phpcardanopress/notices-handler.php
payment-form.phpStandalone payment form layout.templates/payment-form.phpcardanopress/payment-form.php
pool-delegation.phpStandalone pool delegation layout.templates/pool-delegation.phpcardanopress/pool-delegation.php
welcome-banner.phpBanner for CardanoPress pages.templates/welcome-banner.phpcardanopress/welcome-banner.php

Partial Templates #

Partial templates control smaller sections like buttons, modals, and profile items. Override them in cardanopress/part/ within your theme.

Powered by BetterDocs