ads sections

This commit is contained in:
Ross Trottier 2024-07-29 11:03:13 -06:00
parent 41c4ee06b8
commit e1a67b23d1
3 changed files with 50 additions and 8 deletions

View File

@ -54,8 +54,16 @@
wp_reset_postdata();
?>
<!-- HERE IS WHERE THE AD WILL GO -->
</div>
<!-- HERE IS WHERE THE AD WILL GO -->
<section class="st-ad-section-long-archive">
<?php
if(function_exists('the_ad_group')){
the_ad_group(149);
}
?>
</section>
<?php list_pagination($count); ?>
</div>

View File

@ -21,7 +21,7 @@
</div>
<?php the_content(); ?>
</article>
<?php
if(function_exists('get_field')){
$related_posts = get_field('related_posts', $post_id);
@ -51,7 +51,16 @@
}
}
}?>
<section class="st-ad-section-long-post-end st-article">
<?php
if(function_exists('the_ad_group')){
the_ad_group(149);
}
?>
</section>
</article>
<?php
comments_template();
get_footer();
?>

View File

@ -757,9 +757,11 @@ SECTIONS
}
}
.st-ad-section .local-highlight-wrapper img,
.st-ad-section .local-highlight-wrapper video,
.st-ad-section-long .local-highlight-wrapper img {
.st-ad-section img,
.st-ad-section a,
.st-ad-section video,
.st-ad-section-long img,
.st-ad-section-long a {
display: block;
width: 100%;
height: auto;
@ -767,13 +769,36 @@ SECTIONS
}
@media (min-width: 760px) {
.st-ad-section .local-highlight-wrapper img,
.st-ad-section .local-highlight-wrapper video,
.st-ad-section-long .local-highlight-wrapper img {
.st-ad-section img,
.st-ad-section a,
.st-ad-section video,
.st-ad-section-long img,
.st-ad-section-long a {
margin-bottom: 0;
}
}
.st-ad-section-long-archive a,
.st-ad-section-long-archive img,
.st-ad-section-long-archive video {
width: 100%;
height: auto;
}
.local-article-mid-roll a,
.local-article-mid-roll img {
width: 100%;
height: auto;
}
.st-ad-section-long-post-end a,
.st-ad-section-long-post-end img,
.st-ad-section-long-post-end video {
width: 100%;
height: auto;
margin-bottom: 1em;
}
/*
============================
COMPONENTS