WordPress.org

Ready to get started?Download WordPress

Forums

Easel
Trouble inserting ads between posts on Easel (2 posts)

  1. sparty511
    Member
    Posted 10 months ago #

    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?

  2. kcrusher
    Member
    Posted 10 months ago #

    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();

Reply

You must log in to post.

About this Theme

About this Topic

Tags