i try to add AdSense code over <main id=“main” class=“site-main” role=“main”> but the ads not show. Can anyone help me?
Those ads should appear but only on those template files that you edited. If you edited,
single.php then ads should be displayed on Single Posts. If on
page.php then on Single Page and so on.
A simpler alternative for AdSense banner management is to use official Google AdSense plugin that you can download here.
Hi @Aigars I am trying to add Adsense between posts (Specifically after every 3 posts on Category pages) I am using the following code (In Main Index php file)
<?php $count = 3; ?> Above <?php while (have_posts()) : the_post(); ?>
The following code Above <?php endwhile; ?>
<?php if ($count == 3) : ?>
AdSense Code 1
<?php endif; $count++; ?>
But the Ads appear right after the first post, i want them to appear after 3 posts.
Thanks in advance.
@soshailakash This is old topic and to help us keep support thread separates could you please create your own thread for your question here https://colorlibsupport.com/c/dazzling/ instead of replying on others thread as it makes the thread messy and hard to read.
If you want to you can also add reference of this thread in your newly created thread.
We would be more than happy to help you on your new thread.