<?php $hidden_pages = ['/modules/user/sign_in.php', '/modules/user/sign_up.php', '/modules/user/password_reset.php']; if(in_array($_SERVER['PHP_SELF'], $hidden_pages)) { ?> <style>.header, .footer {display: none;}</style> <?php } ?>