ads as placements instead of groups

This commit is contained in:
Ross Trottier 2024-09-11 13:00:24 -06:00
parent 10eac179fb
commit 3f95a27421
5 changed files with 24 additions and 24 deletions

View File

@ -59,8 +59,8 @@
<!-- HERE IS WHERE THE AD WILL GO --> <!-- HERE IS WHERE THE AD WILL GO -->
<section class="st-ad-section-long-archive"> <section class="st-ad-section-long-archive">
<?php <?php
if(function_exists('the_ad_group')){ if( function_exists('the_ad_placement') ) {
the_ad_group(149); the_ad_placement('ads-long');
} }
?> ?>
</section> </section>

View File

@ -65,8 +65,8 @@
<!-- HERE IS WHERE THE AD WILL GO --> <!-- HERE IS WHERE THE AD WILL GO -->
<section class="st-ad-section-long-archive"> <section class="st-ad-section-long-archive">
<?php <?php
if(function_exists('the_ad_group')){ if( function_exists('the_ad_placement') ) {
the_ad_group(149); the_ad_placement('ads-long');
} }
?> ?>
</section> </section>

View File

@ -69,10 +69,10 @@
</section> </section>
<section class="st-ad-section st-ad-section__top"> <section class="st-ad-section st-ad-section__top">
<?php <?php
if (function_exists('the_ad_group')) { if ( function_exists('the_ad_placement') ) {
the_ad_group(146); the_ad_placement('ads-tall');
the_ad_group(147); the_ad_placement('ads-small-a');
the_ad_group(148); the_ad_placement('ads-small-b');
} }
if (function_exists('dynamic_sidebar')) { if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('mailing_list'); dynamic_sidebar('mailing_list');
@ -200,8 +200,8 @@
</section> </section>
<section class="st-ad-section-long"> <section class="st-ad-section-long">
<?php <?php
if (function_exists('the_ad_group')) { if( function_exists('the_ad_placement') ) {
the_ad_group(149); the_ad_placement('ads-long');
} }
?> ?>
</section> </section>
@ -285,10 +285,10 @@
</section> </section>
<section class="st-ad-section st-ad-section__top"> <section class="st-ad-section st-ad-section__top">
<?php <?php
if (function_exists('the_ad_group')) { if ( function_exists('the_ad_placement') ) {
the_ad_group(146); the_ad_placement('ads-tall');
the_ad_group(147); the_ad_placement('ads-small-a');
the_ad_group(148); the_ad_placement('ads-small-b');
} }
if (function_exists('dynamic_sidebar')) { if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('mailing_list'); dynamic_sidebar('mailing_list');

View File

@ -19,9 +19,9 @@
</article> </article>
<section class="st-ad-section st-ad-section__article-page"> <section class="st-ad-section st-ad-section__article-page">
<?php <?php
if (function_exists('the_ad_group')) { if ( function_exists('the_ad_placement') ) {
the_ad_group(147); the_ad_placement('ads-small-a');
the_ad_group(148); the_ad_placement('ads-small-b');
} }
?> ?>
</section> </section>
@ -30,8 +30,8 @@
<section class="st-ad-section-long-post-end st-article"> <section class="st-ad-section-long-post-end st-article">
<?php <?php
if (function_exists('the_ad_group')) { if( function_exists('the_ad_placement') ) {
the_ad_group(149); the_ad_placement('ads-long');
} }
?> ?>
</section> </section>

View File

@ -67,9 +67,9 @@
</article> </article>
<section class="st-ad-section st-ad-section__article-page"> <section class="st-ad-section st-ad-section__article-page">
<?php <?php
if (function_exists('the_ad_group')) { if ( function_exists('the_ad_placement') ) {
the_ad_group(147); the_ad_placement('ads-small-a');
the_ad_group(148); the_ad_placement('ads-small-b');
} }
if (function_exists('dynamic_sidebar')) { if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('mailing_list'); dynamic_sidebar('mailing_list');
@ -81,8 +81,8 @@
<section class="st-ad-section-long-post-end st-article"> <section class="st-ad-section-long-post-end st-article">
<?php <?php
if (function_exists('the_ad_group')) { if( function_exists('the_ad_placement') ) {
the_ad_group(149); the_ad_placement('ads-long');
} }
?> ?>
</section> </section>