Hi is it possible to unhook the itemtype='http://schema.org/WebPage
and replace it with the below?
<?php if ( is_page( array( 'about', 'about-us' ) ) ) { echo 'itemscope itemtype="http://schema.org/AboutPage"';
} elseif ( is_page( array( 'contact', 'contact-us' ) ) ) { echo 'itemscope itemtype="http://schema.org/ContactPage"';
} elseif ( is_search () ) { echo 'itemscope itemtype="http://schema.org/SearchResultsPage"';
} elseif ( is_front_page () ) { echo 'itemscope itemtype="http://schema.org/WebPage"';
} elseif (is_single () ) { echo 'itemscope itemtype="http://schema.org/Article"';
} else { echo 'itemscope itemtype="http://schema.org/WebPage"'; // just in case we are at an unclassified page, perhaps the home page
} ?>