function genesis_comments_enabled() { return ( is_page() && genesis_get_option( 'comments_pages' ) ) || ( is_single() && genesis_get_option( 'comments_posts' ) ); } Published: 3rd April 2020 | Last updated: 3rd April 2020