The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

which template file are you using?

  • # October 26, 2012 at 11:02 am

    an interesting bit of code from Terry Sutton of, which you put in the functions.php file:

    * Print out the current template file to the footer.
    * Remove before launch.

    function waterstreetgm_which_template() {
    if ( is_super_admin() ) {
    global $template;
    echo ‘Template file:‘;
    print_r( $template );
    add_action( ‘wp_footer’, ‘waterstreetgm_which_template’ );

    # October 26, 2012 at 11:09 am

    Could have used this last night. Thanks for sharing.

    # October 26, 2012 at 8:45 pm

    This reply has been reported for inappropriate content.

    That didn’t work for me.

    # October 26, 2012 at 8:55 pm

    @FragaGeddon Did you put it in your functions.php file?

    # October 26, 2012 at 9:46 pm

    This reply has been reported for inappropriate content.

    Yup, right at the very bottom.

    Edit, ok it’s working now. Switched themes, then switched back and it’s there now.

    # October 26, 2012 at 10:25 pm

    I am using a local test system using XAMPP. I notice that it only works when I am in wp-admin mode, not in local mode on my local test system, I am sure it is because of the if in the code, must look up what that if does, that is “if (is_super_admin())”.



    # October 26, 2012 at 10:30 pm

    here is another link to display current template info


Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed