how to check if front page is set to show a static page
Your conditional logic makes sense as well but you’re probably looking for this: if ( ‘page’ == get_option(‘show_on_front’) ) { // do something } Hint: You can append options.php to the WordpPress admin url like this: http://www.example.com/wp-admin/options.php to see all options. ( that’s where I found the answer for you .)