is_page_template not working
Question
Hi trying this code below to get working, but no look so far.
Idea is simple if page template is page-47.php display <h1>Something</h1>
else <h1>This will show on any other page</h1>
.
<?php if ( is_page_template( 'page-47.php' ) ): ?>
<h1>Something</h1>
<?php else: ?>
<h1>This will show on any other page</h1>
<?php endif ?>
Thank You
0
4 months
0 Answers
21 views
0
Leave an answer
You must login or register to add a new answer .