Bladeren bron

bringing main element back into the fold

also adding some schema markup
Eddie Machado 11 jaren geleden
bovenliggende
commit
b31f81d13a
10 gewijzigde bestanden met toevoegingen van 20 en 20 verwijderingen
  1. 2 2
      404.php
  2. 2 2
      archive-custom_type.php
  3. 2 2
      archive.php
  4. 2 2
      index.php
  5. 2 2
      page-custom.php
  6. 2 2
      page.php
  7. 2 2
      search.php
  8. 2 2
      single-custom_type.php
  9. 2 2
      single.php
  10. 2 2
      taxonomy-custom_cat.php

+ 2 - 2
404.php

@@ -4,7 +4,7 @@
 
 				<div id="inner-content" class="wrap cf">
 
-					<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
+					<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
 
 						<article id="post-not-found" class="hentry cf">
 
@@ -34,7 +34,7 @@
 
 						</article>
 
-					</div>
+					</main>
 
 				</div>
 

+ 2 - 2
archive-custom_type.php

@@ -18,7 +18,7 @@
 
 				<div id="inner-content" class="wrap cf">
 
-						<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
+					<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
 
 						<h1 class="archive-title h2"><?php post_type_archive_title(); ?></h1>
 
@@ -67,7 +67,7 @@
 
 							<?php endif; ?>
 
-						</div>
+						</main>
 
 					<?php get_sidebar(); ?>
 

+ 2 - 2
archive.php

@@ -4,7 +4,7 @@
 
 				<div id="inner-content" class="wrap cf">
 
-						<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
+						<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
 
 							<?php if (is_category()) { ?>
 								<h1 class="archive-title h2">
@@ -88,7 +88,7 @@
 
 							<?php endif; ?>
 
-						</div>
+						</main>
 
 					<?php get_sidebar(); ?>
 

+ 2 - 2
index.php

@@ -4,7 +4,7 @@
 
 				<div id="inner-content" class="wrap cf">
 
-						<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
+						<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
 
 							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
@@ -59,7 +59,7 @@
 							<?php endif; ?>
 
 
-						</div>
+						</main>
 
 					<?php get_sidebar(); ?>
 

+ 2 - 2
page-custom.php

@@ -19,7 +19,7 @@
 
 				<div id="inner-content" class="wrap cf">
 
-						<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
+						<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
 
 							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
@@ -89,7 +89,7 @@
 
 							<?php endif; ?>
 
-						</div>
+						</main>
 
 						<?php get_sidebar(); ?>
 

+ 2 - 2
page.php

@@ -4,7 +4,7 @@
 
 				<div id="inner-content" class="wrap cf">
 
-						<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
+						<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
 
 							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
@@ -70,7 +70,7 @@
 
 							<?php endif; ?>
 
-						</div>
+						</main>
 
 						<?php get_sidebar(); ?>
 

+ 2 - 2
search.php

@@ -4,7 +4,7 @@
 
 				<div id="inner-content" class="wrap cf">
 
-					<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
+					<main id="main" class="m-all t-2of3 d-5of7 cf" role="main">
 						<h1 class="archive-title"><span><?php _e( 'Search Results for:', 'bonestheme' ); ?></span> <?php echo esc_attr(get_search_query()); ?></h1>
 
 						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
@@ -58,7 +58,7 @@
 
 							<?php endif; ?>
 
-						</div>
+						</main>
 
 							<?php get_sidebar(); ?>
 

+ 2 - 2
single-custom_type.php

@@ -21,7 +21,7 @@
 
 				<div id="inner-content" class="wrap cf">
 
-						<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
+						<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
 
 							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
@@ -89,7 +89,7 @@
 
 							<?php endif; ?>
 
-						</div>
+						</main>
 
 						<?php get_sidebar(); ?>
 

+ 2 - 2
single.php

@@ -4,7 +4,7 @@
 
 				<div id="inner-content" class="wrap cf">
 
-					<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
+					<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
 
 						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
@@ -43,7 +43,7 @@
 
 						<?php endif; ?>
 
-					</div>
+					</main>
 
 					<?php get_sidebar(); ?>
 

+ 2 - 2
taxonomy-custom_cat.php

@@ -18,7 +18,7 @@
 
 				<div id="inner-content" class="wrap cf">
 
-						<div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
+						<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
 
 							<h1 class="archive-title h2"><span><?php _e( 'Posts Categorized:', 'bonestheme' ); ?></span> <?php single_cat_title(); ?></h1>
 
@@ -66,7 +66,7 @@
 
 							<?php endif; ?>
 
-						</div>
+						</main>
 
 						<?php get_sidebar(); ?>