Created
March 16, 2020 02:00
-
-
Save bstonedev/04eef01b8b62d088e1a45d3af01d1ae2 to your computer and use it in GitHub Desktop.
Conditional for if Template is being used
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( is_page_template( 'template-name.php' ) ) { | |
// template-name.php is used | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment