2012-02-17, 10:03:34
I'm hacking on my template and use includes (header, footer, etc.).
In the header or some includes I sometimes would like to include a conditional asking for the template used actually. For example to include additional js/css for a certain template in the header.inc file. This to avoid creating additional inc files that differ only in one line/part of the code.
In the Forum I found some about doing simliar conditionals with the page_slug (Noindex, nofollow for single page, Display components in specific page only), but not for specific template only.
Is it in some way possible to make a conditional by the used template without a plugin?
In the header or some includes I sometimes would like to include a conditional asking for the template used actually. For example to include additional js/css for a certain template in the header.inc file. This to avoid creating additional inc files that differ only in one line/part of the code.
In the Forum I found some about doing simliar conditionals with the page_slug (Noindex, nofollow for single page, Display components in specific page only), but not for specific template only.
Is it in some way possible to make a conditional by the used template without a plugin?
Advanced HTML5 & CSS3 coder. Simple JS & PHP hacker (not enough for new function coding). Build one webpage with GS (late 2012). Focusing on Theme customizing/Template files. Experience with WP.