Article Top Ad Before Excerpt

Posted in: Newspaper
Post count: 7

Hello,

I enabled the “Article Top Ad” in the theme options, but the ad doesn’t show at the very top:
breadcrumbs
title
category
author
date
excerpt
–>Ad shows up here

How can we get it within the post loop, but just above the breacrumbs, or at least the title?

Thanks!

Post count: 7909

Hi,

First you have to ad the code in your custom ad from Theme Panel: http://screencast.com/t/7BKCFWGNKY2V
After that edit loop-single.php(default template) and add the shortcode echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); above breacrumbs: http://screencast.com/t/l3pKgdEO
If you have to edit single-templates use php tags: http://screencast.com/t/EiwivDuTPHCT

Result: http://screencast.com/t/N8MKDkNK

Thanks!

Post count: 7

Soooo close. For some reason it still shows just below the breadcrumbs, but I think we’re ok with that.
Just in case they change their mind, do I need to change something else so the breadcrumbs are underneath?

Thanks again!

<?php
/**
* The single post loop - This shows only one post
**/

if (have_posts()) {
the_post();

$td_mod_single = new td_module_1($post);

echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]');
//show the breadcrumb
if (get_post_type($post) == 'post') {
echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
} else {
echo td_page_generator::get_page_breadcrumbs($td_mod_single->title);
}
?>

Post count: 7909

Hi,

You can leave the code like that because it’s above the breadcrumbs.
It is appear bellow because breadcrumbs have absolute position, so leave the code like that and try this css for default template: http://screencast.com/t/wPEM61LWjh1

.td-post-content .entry-crumbs{
position: relative !important;
}

Result: http://screencast.com/t/xQJOCXunQ

Thanks!

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