August 11, 2011

Adding content between posts

With the Unlimited, Premium, and Business Class plans, you can add content such as Google AdSense ads, banners, or other content in between posts by editing the blog's source code using an Advanced Template set for the blog's design. You can find more information on Advanced Templates here.

Editing Advanced Templates to place content between posts

To begin, go to the Design tab for the blog and click on your Main Index Template to place content between posts in the blog index. You can also place content between posts in the Category and DateBased archives.

Basic Code Structure

Below is a basic example of how the code will be structured. The code will be placed immediately after the MTEntries tag in the template. In this example, content will be added after the first and third posts.

Example with Post Code

Below is an example with the post code included:

Note: The Main Index Template controls all of the paginated main index pages. This means that if you include content after the first post on the main page, it will show in the same spot on the consecutive pages as well.

Example for the Main Index Template

Below includes the full post code, including the tags used for displaying a featured post in the Main Index Template. This code is slightly different from the above code and includes the specific code for showing a Featured Post.

Note that the Featured Post is separate, so if you edit the code to display content after the first post, it will show after the first non-featured post on the page.

Search


Need design help?

Looking to launch a new blog? Have an itch to tweak your design or layout? Want a superior banner or design custom made specifically for your blog? We've got you covered!

Discover Typepad Services