>
Download This Plugin | |
Download Elegant Themes | |
Name | Reveal Template |
Version | 3.1 |
Author | Scott Reilly |
Rating | 100 |
Last updated | 2015-02-20 08:15:00 |
Downloads |
16380
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Reveal Template plugin added 2 bytes of resources to the Home page and 6 bytes of resources to the sample Post page.
Reveal Template plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Reveal Template plugin ads no tables to your Wordpress blog database.Designers and developers know that it can sometimes be confusing and frustrating to determine the exact template being utilized to render the currently displayed page in WordPress. Sometimes page or category specific templates exist, or a page/post has been set by the post author to use a particular template, or the current theme doesn't employ certain templates causing WordPress to fall back to others.
This plugin relieves the aggravation by assisting designers and developers by displaying the template being used to render the currently displayed page in WordPress. This can be shown in one or more of the following methods:
By default, the theme-relative path to the theme template file used to render the page is shown in the site's footer. The settings page for the plugin, at 'Design' -> 'Reveal Template', allows you to control and configure this particular method. Note: this only works if the theme follows the recommended practice of calling the wp_footer()
template tag) at some point.
A widget named "Reveal Template" is made available which can be used to display the theme template file used to render the page in any widget location.
A shortcode called 'revealtemplate' is made available which can be used in post/page content to display the theme template file used to render the page. Currently it supports two possible attributes:
Examples: [revealtemplate type="absolute"]
, [revealtemplate type="filename" admin="0"]
A template tag is also provided which can be used to display the theme template file used to render the page.
<?php c2c_reveal_template(); ?>
By default, c2c_reveal_template()
will echo the template name. To simply retrieve the template filename rather than displaying it:
<?php $template = c2c_reveal_template( false ); ?>
The template tag also takes a second argument which be can be one of the following: absolute, relative, theme-relative, filename. This determines the path style you'd like reported. If not specified, it uses the default defined in the plugin's settings page.
Examples of path types:
This plugin is primarily intended to be activated on an as-needed basis.
Links: Plugin Homepage | Plugin Directory Page | Author Homepage