returns the template name used for the current page.



This tool can be used to easily apply different styles to different templates, within the same theme, while still using the same header file across these templates:

Header file (header.php):

        <!-- The header content goes here ... -->
    <body class="@t(template)">

Footer file (footer.php):

        <!-- Some footer content here ... -->

The actual template file can now include these files and is still wrapped in a unique class, identifying the template:



See also