Hi, I am using the Underscores starter theme and I notice that when I use the Content position this removes the <main>
tags from index.php and I can’t see why.
Here is my Index.php:
get_header();
?>
<!-- Tangible Theme Position -->
<?php do_action('tangible_layout_before_content') ?>
<main id="primary" class="site-main">
<?php the_content() ?>
</main><!-- #main -->
<!-- Tangible Theme Position -->
<?php do_action('tangible_layout_after_content') ?>
<?php
get_sidebar();
get_footer();
When I set a Layout to the Content position these tags are removed:
<main id="primary" class="site-main">
</main><!-- #main -->
I don’t see the same issue with Header.php which also has HTML tags around the content positions. Is this expected behaviour or a bug?
Thanks.