Change the default position of bottom ad

Posted in: Newspaper
Post count: 436

Hi,
Currently, bottom ads are designed to display at the bottom of the post before pagination ( page 1,2 etc, ) share button, next preview post and author box.

So, right now,



            <?php echo $td_mod_single->get_content();?>
             </div>

<strong>( BOTTOM AD APPEARS HERE)</strong>
        <footer>
            <?php echo $td_mod_single->get_post_pagination();?>
            <?php echo $td_mod_single->get_review();?>

            <div class="td-post-source-tags">
                <?php echo $td_mod_single->get_source_and_via();?>
                <?php echo $td_mod_single->get_the_tags();?>
            </div>

I want to change the default position after POST pagination, share button etc. and before “next-prev post”

SO,



        <footer>
            <?php echo $td_mod_single->get_post_pagination();?>
            <?php echo $td_mod_single->get_review();?>

            <div class="td-post-source-tags">
                <?php echo $td_mod_single->get_source_and_via();?>
                <?php echo $td_mod_single->get_the_tags();?>
            </div>

            <?php echo $td_mod_single->get_social_sharing_bottom();?>
<strong>( I WANT THE BOTTOM AD HERE)</strong>
            <?php echo $td_mod_single->get_next_prev_posts();?>
            <?php echo $td_mod_single->get_author_box();?>
	        <?php echo $td_mod_single->get_item_scope_meta();?>
        </footer>

Please tell me which core file I do need to edit and what do I need to edit? Thank you.

  • This topic was modified 9 years by Nano.
Post count: 23312

Hello nano2408,

Please keep in mind that the bottom ad is already included in post content and it is not a simple task to change its position to another, sorry! Another alternative for you would be to use a Custom Ad 1, for example, and add it where you want. For example, if you are using the post template style 3, you should use the do_shortcode method with the Custom Ad 1 and change the code from the loop-single-3.php core file, like this -> http://screencast.com/t/VmMuT6GbdS The snippet of the code is the following one ->
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
If you want to create a new Custom Ads, you should consult the topic here -> https://forum.tagdiv.com/topic/create-additional-custom-ads/

Thanks for the message!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.