Home>Support>Add content between blog post loop on main blog page

Add content between blog post loop on main blog page

I’ll try to explain this as in depth as I can. I’m trying to modify the template page index.php, which is the page that lists all the blog posts, with a short summary. I’m trying to figure out where the code is that creates the blog post loop and where I need to add my content to get it added to that loop.

Here’s what I’m trying to do. I want to add AdSense ads between each of the blog posts on that page, so I need to find the code that’s creating and displaying that loop, so I can add the AdSense code there and have the ads appear between each blog post.

Thanks,
James

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Robert,

    You’re looking for the loop files which are found at vantage/loops. Simply edit the (for example) loop-blog.php file and add the code inside of the while statement.

    For more information, please refer to this page.

  2. 7 years, 4 months ago Robert Hamby

    Alex, thank you so much, you’re a life saver!! It would have taken me forever to find that on my own.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More