Enter your keyword

Blog

How to check Default template is activate in WordPress

<?php
$page_template = get_page_template();
$pageArray = explode("/", $page_template);
$page_template = end($pageArray);
 
if ($page_template == 'page.php'):
        echo "Default Page Template";
endif; ?>

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.