Menu Close Menu
Menu
  • 0
    • Number of items in basket: 0

      • Your basket is empty.
      • Total: £0.00
      • Checkout
  • Add-ons
  • Support
    • Documentation
    • Report a Bug
    • Submit a Support Ticket
    • Get Involved
    • Terms and Conditions
  • Your Account
    • Register
  • Blog
  • Contact Us

Template Files for Client Zone

Template Files for Client Zone

Customise the look and feel of all MDJM front end pages

MDJM utilises template files to deliver the content for all pages within the Client Zone. Whilst these templates work out of the box following installation of MDJM, it is possible to customise each and every Client Zone page to better fit in with the design of your website.

Any changes that you make, so long as you apply them to a child theme, will not be overwritten when the MDJM plugin is updated, or your theme is updated.

Template File Locations

Before displaying content on a Client Zone page, MDJM searches three locations (by default) for template files. The first location within which the required file is found, the search stops and the content from that template is used.

MDJM Searches in the following locations in the following order…

  1. A folder called mdjm-templates within your child theme directory for your currently active theme
  2. A folder called mdjm-templates within your currently active theme’s directory
  3. The default templates folder within the MDJM plugin directory (mobile-dj-manager/templates)

Under the templates directory is a list of sub-directories which refer to the page within which its content is displayed. For some pages there may be multiple template files for different sections or visitors etc.

Child Theme Templates DirectoryChild Theme Templates Directory
Theme Template DirectoryTheme Template Directory
Templates DirectoryTemplates Directory

Copying Template Files

You should not customise any of the default template files provided with MDJM. Instead, copy the required file(s) to an mdjm-templates directory within your theme or as recommended, child theme whilst maintaining the folder structure provided in the default location. For example to customise the playlist-client.php template file for your Twenty Sixteen child theme, you would copy the file to
/wp-content/themes/twentysixteen-child/mdjm-templates/playlist/playlist-client.php and then apply your customisations there.

Note that as soon as you copy the file to your [child] theme directory, it becomes active and will be used by MDJM to deliver content.

Under the root of the default templates folder is a style sheet, mdjm.css. To make css changes, you should copy this file to the root of your new mdjm-templates folder.

Customising Templates

All templates can be fully customised and provide full support for all MDJM content tags allowing you to provide dynamic content (such as event date) to each of your clients. Content tags should be entered in the format {event_date}.

When editing templates, be sure to keep any field names the same as the default template file to ensure that data is captured and saved correctly.

You will also notice that within the default templates, much of the text is wrapped in PHP code. You can safely remove this code and replace it with custom text without causing any issues. PHP is only used to allow WordPress to translate the text if necessary.

Video Demonstration


Rate this Article

We're working hard to ensure we provide you with useful and relevant documentation to help you get the most out of MDJM Event Management.

Please take a moment to let us know if you found this article helpful.

Advanced Client Zone Videos Last updated: July 13, 2017

Published by MDJM

Posts by MDJM Visit Website

Post navigation

Previous

What is the MDJM Cache Helper

Next

Payment Gateways in Action

Document Categories

  • Configuration
    • Advanced
  • Extensions
    • Dynamic Contact Forms
    • Google Calendar Sync
    • PayPal Standard
  • FAQs
  • Getting Started
  • Hooks
  • REST API

Latest Posts

  • PayPal Payment Method Discontinued
  • Enhancements! Enhancements! Enhancements!
  • Preparing for New Release 1.6
  • Black Friday Offers

Social Links

  • Like our Facebook Page
  • Join our Facebook Group
  • Fork us on GitHub

Latest news & offers

Subscribe now to receive all the latest news, thoughts and offers from MDJM Event Management.
New subscribers will receive 15% off their first purchase.

© 2021 MDJM Event Management. All rights reserved.
  • Shop
  • Support
  • Account
  • Contact Us
  • Testimonials
  • Privacy Policy
  • Terms