X
🐾 Coming from PetMatchPro 6.x? Version 8 adds real adoption analytics, similar-animal suggestions, SEO-friendly URLs, and overlay badges. See What's New →
PetMatchPro
  • Partners
    • AnimalsFirst
    • PetPoint
    • RescueGroups
  • What’s New
  • Shop
  • Demo
  • FAQ
  • Knowledge Base
  • About Us
  • Contact Us
  • My Account
  • Cart
Select Page
Green rocket icon for Getting Started documentation category

Getting Started

6
  • Activate Your License
  • Setup Wizard Walkthrough
  • Connecting Your Shelter System
  • Understanding License Tiers
  • Creating Your First Search Page
  • Creating Your First Detail Page
Blue code brackets icon for Shortcodes and Configuration documentation category

Shortcodes & Configuration

12
  • Shortcode Builder
  • [pmp-search] Reference
  • [pmp-details] Reference
  • [pmp-detail] Reference
  • [pmp-option] Reference
  • Parameters by License Tier
  • Common Shortcode Recipes
  • Pagination Setup
  • Excluding Values
  • Search Filter Button
  • Detail Button Hover Text
  • Search Card Hover Text
Purple palette icon for Templates and Design documentation category

Templates & Design

7
  • Search Templates Gallery
  • Detail Templates Gallery
  • Poster Templates
  • Theme Template Overrides
  • Color Customization
  • Font Size Customization
  • Detail Title Formats
Orange image with star icon for Icons and Overlays documentation category

Icons & Overlays

6
  • Understanding Pet Icons
  • Understanding Overlays
  • Icon Reference Gallery
  • Customizing Icon Display
  • Value-Based Icons
  • Icon Size Customization
Teal tag icon for Labels and Customization documentation category

Labels & Customization

3
  • Custom Labels Guide
  • Changing Labels via Filtering
  • Custom Currency & Date Formats
Blue funnel icon for Filters and Search documentation category

Filters & Search

5
  • Setting Up Search Filters
  • Species & Breed Filtering
  • Filter Value Management
  • Excluding Values via Filtering
  • Partner-Specific Filter Options
Violet chain link icon for Partner Integration Guides documentation category

Partner Guides

3
  • AnimalsFirst Integration Guide
  • PetPoint Integration Guide
  • RescueGroups Integration Guide
Red bar chart icon for Analytics and Tracking documentation category

Analytics & Tracking

7
  • Understanding PMP Analytics
  • GA4 Configuration
  • Google Tag Manager Setup
  • Leveraging Analytics
  • WP-Cron Requirements for PetMatchPro Analytics
  • Queue Health and Tools
  • Privacy and Data Retention
Lightbulb icon representing PetMatchPro best practices guides for homepage layouts, button strategy, performance tuning, and template selection

Best Practices

10
  • Featuring Animals on Your Homepage
  • Adding Animals to Sidebars and Other Pages
  • Using Banners and Subtitles Effectively
  • Overlays and Icons for Quick Visual Cues
  • Writing Effective Detail Page Instructions
  • Button Configuration for Conversion
  • Optimizing Performance with API Caching
  • Customizing Typography and Icon Sizes
  • Lost and Found Search Best Practices
  • Template Selection Guide
Amber wrench icon for Troubleshooting and FAQ documentation category

Troubleshooting

15
  • Common Error Messages
  • API Connection Issues
  • Template Not Found Errors
  • Theme Template Override Not Loading
  • Performance & Caching Best Practices
  • Animals Not Displaying
  • Stale Content / Cache Issues
  • Styling Conflicts
  • Empty Field Display
  • Analytics Queue Stuck or WP-Cron Not Running
  • Premium Feature Not Appearing After Upgrade
  • Troubleshoot the PetMatchPro Shortcode Builder
  • Reading PMP Debug Logs
  • wp-config.php Configuration Constants
  • How to Contact Support
View Categories
  • Home
  • Knowledge Base
  • Troubleshooting
  • Theme Template Override Not Loading

Theme Template Override Not Loading

6 min read

Theme Template Override Not Loading #

PetMatchPro lets Junior and Preferred users override any search, detail, or poster template by copying it into their active theme. If your copied template isn’t loading, this guide walks through the resolution chain and the most common reasons it fails.

How Template Resolution Works #

When PetMatchPro renders a template, it follows this logic:

  1. License check. If your tier is too low for the selected template, an upgrade message is shown and resolution stops.
  2. Directory choice. If your active theme has a PetMatchPro template directory at themes/your-theme/petmatchpro/templates/{partner}/ AND your tier is Junior or Preferred, the plugin loads templates from the theme directory. Otherwise, it loads from the bundled plugin directory.
  3. File lookup. The selected template filename (with .php auto-appended if missing) is loaded from whichever directory was chosen in step 2.
  4. Error. If the file isn’t found in the chosen directory, the plugin falls back to the default template for the method type or displays “template not found”.

Free (Basic) tier always loads from the plugin directory — theme overrides are a Junior+ feature.

The (theme) suffix you see on dropdown options is purely a display label so you can tell theme overrides apart from bundled plugin templates. The plugin strips the suffix before looking up the file, so the file on disk should always be the bare filename (e.g., adopt-search-default-custom.php, not adopt-search-default-custom (theme).php).

Step 1: Confirm the Correct Folder Structure #

The theme override path must match exactly:

wp-content/themes/your-active-theme/petmatchpro/templates/{partner}/your-template.php

Where {partner} is one of:

  • pp — PetPoint
  • af — AnimalsFirst
  • rg — RescueGroups

Common mistakes:

  • Folder is pet-match-pro (with hyphens) instead of petmatchpro (no hyphens)
  • Folder is template (singular) instead of templates
  • Folder is in the parent theme but the active theme is a child theme — the override must live in the active theme
  • Filename mismatch: case-sensitive on Linux servers (e.g., Adopt-Default.php won’t match adopt-default.php)
  • Missing .php extension

FTP client showing the remote directory /public_html/demo.petmatchpro.com/wp-content/themes/Divi-child/petmatchpro/templates/pp containing two PHP override files: adopt-conversion-custom.php and adopt-search-custom.php

Step 2: Confirm License Tier #

  1. Go to PetMatchPro > License Information.
  2. Verify your tier is Junior or Preferred.
  3. Free (Basic) users will never resolve theme paths, no matter where the file is placed.

Step 3: Confirm Template Selection #

The admin template dropdown lists both plugin templates and theme templates. Theme templates appear with a (theme) suffix.

  1. Go to PetMatchPro > General Options.
  2. Find the Search Template or Detail Template field for the relevant method type.
  3. Select the option that ends in (theme). For example: adopt-search-default (theme).
  4. Click Apply Changes.

If no (theme) options appear in the dropdown, your theme override file is not being detected at the expected path. Re-check Step 1.

PetMatchPro General Options Template Selection panel with the Adopt Search Template dropdown open, showing four options: adopt-search-default, adopt-search-default-custom (theme) highlighted, universal-search-default, and universal-search-structured

Step 4: Shortcode Template Parameter #

If you’re overriding via the shortcode template parameter rather than admin settings:

[pmp-search template="adopt-search-default-custom.php (theme)"]
  • The plugin tolerates either form — with or without the .php extension, with or without the (theme) suffix — so all of these resolve to the same template:
    • template="adopt-search-default-custom"
    • template="adopt-search-default-custom.php"
    • template="adopt-search-default-custom (theme)"
    • template="adopt-search-default-custom.php (theme)"
  • Best practice: include the (theme) suffix in shortcodes that point at a theme override. It’s a self-documenting hint to the next person editing the page that this template lives in the theme directory, not the plugin directory. Especially valuable when your theme override has the same filename as a bundled plugin template — the suffix makes the override intent unambiguous.
  • The shortcode template parameter is Junior+ only. Free users selecting a paid template see an upgrade message instead of the template loading.

Divi page builder editing the Available Dogs page, with the Text widget showing the shortcode 
[pmp-search type="adopt" species="dog" template="adopt-search-default-custom.php (theme)"] using the (theme) suffix to document that the template is a theme override

Step 5: Clear Caches #

OPcache and page caches can serve stale template paths after you copy a new file into the theme. After uploading the override:

  1. Hard refresh the page (Ctrl+Shift+R / Cmd+Shift+R)
  2. Clear your WordPress caching plugin (if any)
  3. Clear LiteSpeed cache (if your host uses it)
  4. Ask your host to clear OPcache or restart PHP-FPM
  5. Purge your CDN if applicable

How the Override Resolves #

Once you create a theme override directory at themes/your-theme/petmatchpro/templates/{partner}/, PetMatchPro routes all template lookups for that partner to the theme directory (Premium+ tier required). Any template you reference by name must exist in the theme directory at that point — if a template only lives in the bundled plugin folder and you’ve also created a theme override directory, the plugin won’t find it.

Practical implications:

  • If you only want to override one or two templates, copy them to the theme directory and select them in admin or shortcodes; templates you don’t override won’t be available in this method’s dropdown unless they’re also copied.
  • For full flexibility (mix of overrides and stock plugin templates), copy all the templates you use into the theme directory.
  • If you decide you no longer need any theme overrides, delete or rename the theme override directory entirely — PetMatchPro will then fall back to the plugin’s bundled templates.

If your override file isn’t loading, double-check the directory path (Step 1) and filename spelling (case-sensitive on Linux servers). The most common failure mode is a typo in the directory name (petmatchpro with no hyphen, templates plural) or the wrong active theme.

Recommended Workflow #

  1. Copy the original plugin template from wp-content/plugins/pet-match-pro/public/templates/{partner}/ to your theme at wp-content/themes/your-theme/petmatchpro/templates/{partner}/.
  2. You can keep the original filename (the theme copy will silently override the plugin version) or rename with a -custom suffix (e.g., adopt-search-default-custom.php) to make the override visually distinct in the admin dropdown and your file manager. PetMatchPro picks up any .php file in this directory.
  3. Make your customizations in the theme copy.
  4. Select your override template in General Options (it will appear in the dropdown with a (theme) suffix), or reference it directly in a shortcode.
  5. If you’re using a child theme, copy into the child theme — not the parent.

When same-name vs. renamed:

  • Use the same filename as the plugin template if you want a transparent, drop-in override that takes precedence whenever that template is referenced (admin dropdown picks the theme version automatically once it exists).
  • Use a renamed filename (e.g., -custom suffix) if you want both the original plugin template and your customized version available side-by-side, so you can switch between them while iterating or compare behavior.

Next Steps #

  • Theme Template Overrides — Full setup guide
  • Template Not Found Errors — When PetMatchPro can’t load any template
  • Search Templates Gallery — All templates available for override
  • Detail Templates Gallery — Detail templates available for override
Theme Template Override Not Loading ultima modifica: 2026-04-30T12:37:24-04:00 da PetMatchPro
Updated on May 1, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Template Not Found ErrorsPerformance & Caching Best Practices

Submit a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Theme Template Override Not Loading
    • How Template Resolution Works
    • Step 1: Confirm the Correct Folder Structure
    • Step 2: Confirm License Tier
    • Step 3: Confirm Template Selection
    • Step 4: Shortcode Template Parameter
    • Step 5: Clear Caches
    • How the Override Resolves
    • Recommended Workflow
    • Next Steps

© Copyright 2018-2026 by PetMatchPro, All Rights Reserved

  • Privacy Policy
  • Terms of Use
  • Disclaimer
  • Login