• Resolved Ian

    (@iannich)


    Hi,

    I am trying to override one of your template files but can’t get it to work following your knowledge base article.

    I have added a directory called wp-car-manager in my child theme.
    I have copied the file contact.php to this directory and added a paragraph of text for testing. The text doesn’t appear.

    If I add some text to the original template file on the same line it is displayed, so it looks as if the template is not being overridden.

    I also tried adding the original folder structure to my child theme:
    /my-theme/wp-car-manager/templates/single-vehicle/contact.php

    I do not have any caching plugins installed.

    WP Version 5.2.2
    WP Car Manager version 1.4.2

    Hope you can help, Ian

Viewing 1 replies (of 1 total)
  • Thread Starter Ian

    (@iannich)

    I found the solution so issue is now resolved, here’s how, for anyone else that’s having problems:

    The directory structure for the contact.php file should be:
    /my-theme/wp-car-manager/single-vehicle/contact.php

    • This reply was modified 6 years, 11 months ago by Ian. Reason: Forgot to mark this as resolved
Viewing 1 replies (of 1 total)

The topic ‘Overriding Templates’ is closed to new replies.