Simplify your code for a test
if (is_page_template('news-page.php')) { ?>
<p>yes!</p>
<?php } else { ?>
<p>not 'news-page.php'</p>
<?php }
Simplify your code for a test
if (is_page_template('news-page.php')) { ?>
<p>yes!</p>
<?php } else { ?>
<p>not 'news-page.php'</p>
<?php }