Why isn’t is_page working when I put it in the functions.php file?
I have page called “Apple”, the page’s ID id 2533. In page.php file I have line: echo $bannerimg And this function in functions.php: if ( is_page( ‘2533’ ) ) { // also tested with ‘Apple’ $bannerimg = ‘apple.jpg’; } elseif ( is_page( ‘test’ ) ) { $bannerimg = ‘test.jpg’; } elseif ( is_page( ‘admissions’ ) … Read more