If you couldn’t help me can you please tell me where the home page file to edit
i am looking for the the index.php, home.php or front-page.php to add this code

<?php if(have_posts()): ?>
<?php $count=0; ?>
<?php while( have_posts() ): the_post(); ?>
<?php $count++ ?>
<?php if( $count==3 || $count==6 ): ?>
<div>Ads code here</div>
<h2>” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>
<?php else: ?>
<h2>” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>