Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #374826

    Hi there,

    I’m trying to figure out how to add a banner to the bottom of every post on my site. I managed to get it added using some code I found on here, but the advert just sits on top of the social media button section.

    function adsense_bottom($id, $context) {
    if($context == 'post'){
    ?>
    
    <div class="adsense2">Code goes here</div>
    
    <?php
    }
    }
    add_action('ava_after_content', 'adsense_bottom', 10, 2);

    It looks like this… Screenshot

    Thanks!

    #375141

    Any ideas?

    #375357

    Hey!

    Are you wanting it below the social icons? Send us a link to your page please.

    Regards,
    Elliott

    #375360

    Hello Elliott.

    Unfortunately I can’t send you a link as i’m working on this offline before uploading the new design. I’d like to place the advert above the social icons if possible, right below the post content.

    Thank you.

    #375384

    I’ve managed to get the advert to sit underneath the social media icons by adjusting the bottom margin on .av-share-box. It’s not what I wanted to do, but it will do for now!

    Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Advert At Bottom of Every Post’ is closed to new replies.