Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Sophy

    (@sophy)

    Could you put difference code!

    I also have the same problem. When put the code into the before content part the ads will display in middle part and end part also.
    Even we put different code in each part, only one ads display in theses 3 sections.
    Any ideas?
    Thanks

    Thread Starter emingus

    (@emingus)

    We ended up buying the actual theme which seemed to fix it – but there is definitely something buggy abut the free version.

    I just find out how to fix this problem:
    go to ads-managment.php (inc/ads-managment.php) and edit some codes in superads_lite_ad_managment function:

    function superads_lite_ad_managment($content) {
    global $post;

    if (!is_single()) return $content;

    $today = date_create(date(‘Y-m-d’));
    $published = date_create(get_the_date(‘Y-m-d’, $post->ID));
    $interval = date_diff($today, $published);
    $age = $interval->format(‘%a’);

    if ($before_content = get_theme_mod(‘superads_lite_ads_before_content’)) {
    $content = ‘<div class=”ads-banner-block top-single-ads ‘. get_theme_mod(‘superads_lite_ads_before_content_align’) .'”>’ . html_entity_decode ($before_content, ENT_QUOTES) . ‘</div>’ . $content;
    }

    if ($middle_content = get_theme_mod(‘superads_lite_ads_middle_content’)) {
    $content = superads_lite_ad_middle_content($content, ‘<div class=”ads-banner-block middle-single-ads ‘. get_theme_mod(‘superads_lite_ads_middle_content_align’) .'”>’ . html_entity_decode ($middle_content, ENT_QUOTES) . ‘</div>’);
    }

    if ($after_content = get_theme_mod(‘superads_lite_ads_after_content’)) {
    $content = $content . ‘<div class=”ads-banner-block below-single-ads ‘. get_theme_mod(‘superads_lite_ads_after_content_align’) .'”>’ . html_entity_decode ($after_content, ENT_QUOTES) . ‘</div>’;
    }

    return $content;

    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Top/Middle/Bottom Ads’ is closed to new replies.