• So I’ve read the simple instructions for inserting adsense between posts in a couple of forums here, and it seems simple. i was able to do it on one theme, but cannot do so on the Easel theme. The coding appears different on the index.php

    it shows as this:

    <?php get_header();

    if (!easel_themeinfo(‘disable_blog_on_homepage’)) {

    if (have_posts()) {
    while (have_posts()) : the_post();
    get_template_part(‘content’, get_post_format());
    endwhile;
    if (easel_themeinfo(‘enable_comments_on_homepage’) && (easel_themeinfo(‘home_post_count’) == ‘1’)) {
    $withcomments = true;
    comments_template(”, true);
    } else
    easel_pagination();
    }

    }

    get_footer();

    How would I insert the adsense with this theme since it is different than the instructions typically say?

Viewing 1 replies (of 1 total)
  • Try inserting the adsense code where I’ve indicated below

    <?php get_header();

    if (!easel_themeinfo(‘disable_blog_on_homepage’)) {

    if (have_posts()) {
    while (have_posts()) : the_post();
    get_template_part(‘content’, get_post_format());
    endwhile;
    [ insert ad code here – it will show above the comments if you have comments enabled ]
    if (easel_themeinfo(‘enable_comments_on_homepage’) && (easel_themeinfo(‘home_post_count’) == ‘1’)) {
    $withcomments = true;
    comments_template(”, true);
    } else
    easel_pagination();
    }

    }

    get_footer();

Viewing 1 replies (of 1 total)
  • The topic ‘Trouble inserting ads between posts on Easel’ is closed to new replies.