Why isn’t is_page working when I put it in the functions.php file?

functions.php is processed way before you can know which page is being loaded. Instead of assigning value to variable put your code into function and use that function in page.php template.

Leave a Comment