Menu Close Menu
Menu
  • Themes
  • Extensions
  • Showcase
  • Support
    • Documentation
    • Open Support Ticket
    • Terms & Conditions
  • Blog
  • Account
    • Number of items in cart: 0

      • Your cart is empty.
      • Subtotal: $0.00
      • Estimated Tax: $0.00
      • Total: $0.00
      • Checkout

Overriding Templates

Overriding Templates

The template files of WP Club Manager contain the  markup and template structure for the front-end of your club website. If you open these files you’ll notice they all contain many hooks which will allow you to add / move content without having to edit the template files themselves. This method protects even further against any upgrade issues as the template files can be left completely untouched.

Alternatively, you can edit these files in an  upgrade safe way through overrides. Simply copy it into a directory within your theme named /wpclubmanager, keeping the same file structure.

To overide the admin order notification, copy: wp-club-manager/templates/single-player/meta.php to yourtheme/wpclubmanager/single-player/meta.php

The copied file will now override the WP Club Manager default template file. Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customisations will be lost.

The  template files can be found within the  /wp-club-manager/templates/ directory:

If you want to edit one of these templates simply copy it into a directory within your theme named  /wpclubmanager, keeping the same file structure, e.g. move /templates/single-player/meta.php to themename/wpclubmanager/single-player/meta.php. The copied file will now override the WP Club Manager default template file. Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customisations will be lost.

4th October 2020

Post navigation

Previous

Sponsors Widget

Next

Third Party Theme Compatibility

Docs Categories

  • Clubs (4)
  • Getting Started (4)
  • League Tables & Rosters (3)
  • Matches (6)
  • Players & Staff (9)
  • Plugin Settings (11)
  • Shortcodes (8)
  • Snippets (4)
  • Theming & Extending (3)
  • Widgets (6)

Popular Articles

  • Third Party Theme Compatibility
  • Match List Shortcode
  • Managing Clubs
  • League Table Shortcode
  • Quick Start Guide
  • Extensions
  • Themes
  • Showcase
  • Terms
  • Documentation
  • Support
  • Support Policy
  • Blog
© 2014-20 WP Club Manager | Manage your sports club website