WordPress.org

Ready to get started?Download WordPress

Forums

Reveal Template
[resolved] Incorrect Template Path when using Child Theme (2 posts)

  1. MandyWhite
    Member
    Posted 3 years ago #

    I absolutely love this plugin. I am having one problem though with realing the correct path to the current template. My blog uses a child theme, and Twenty Ten as the base theme. At times, it does use templates found in Twenty Ten's directory but it also uses custom templates in the Child's directory. For the most part, the templates pulled by WordPress are found in the child's directory. However, the plugin always returns the Twenty Ten path, not the child's path which is the template enabled in the admin. While some template names are duplicated between the directories, some are also unique to the child's directory. The unique files use names like taxonomy-catalog-books.php and single-product.php. The plugin does return the correct file name but the path is wrong. This isn't a big deal for files that only exist in the Child but it's a bit confusing when a template name exists in both directories.

    Is there a way to force the plugin to reveal the true path to the revealed file? As far as I can tell, it doesn't actually check the path but instead, it tacks on an assumed path based on a file that must exist in the Twenty Ten folder. I thought it might be basing it on the footer's location but a footer template actually exists in both directory and (as far as I can tell) WordPress uses the footer in the Child directory. I'm not sure why it's picking Twenty Ten. Any ideas?

    Thanks for your awesome plug-in and time. Despite my issue, I gave it 5 stars already.

    http://wordpress.org/extend/plugins/reveal-template/

  2. Scott Reilly
    WordPress & Plugin Dev
    Plugin Author

    Posted 3 years ago #

    Thanks for reporting the issue!

    I just released v2.0.4 of the plugin which fixes the problem. Let me know if you encounter anything else.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic