ads sections
This commit is contained in:
parent
41c4ee06b8
commit
e1a67b23d1
10
archive.php
10
archive.php
@ -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>
|
||||
|
||||
|
11
single.php
11
single.php
@ -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();
|
||||
?>
|
37
style.css
37
style.css
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user