Blogs - Footer

Three latest blog posts in the footer for those interested in learning more about your industry.

Wireframe

Footer Blog Posts


Preparation Checklist

Before you start this tweak, it's a good idea to run through our preparation checklist below:

  • Read through the Getting Started to get a better sense of how the Control Panel, Database and Front End store interact.
  • Learn our recommended Simple Workflow. This makes the implementation process as easy as possible.
  • Create a new Staging Theme for this tweak. This allows you to preview any changes before they are visible to live customers.

Coding Instructions

Step 1: Open the footer template

The footer template can be found here /httpdocs/assets/themes/[THEME-NAME]/templates/footer/template.html.

Step 2: Add the code into the template

Paste the following code into the template where you would like the element to appear.

<!-- Footer Blog Posts -->
[%thumb_list type:'content' content_type:'blog' limit:'3' sortby:'date_posted-desc'%]
    [%param *header%]
        <section class="container my-2" aria-label="Latest Blog Posts">
            <div class="row align-items-center">
    [%/param%]
    [%param *body%]
                <article class="col-12 col-md-4">
                    <div class="row align-items-center">
                        <div class="col-4">
                            <a href="[@URL@]"><img src="[%ASSET_URL type:'content' id:'[@content_id@]'%][%param default%][%cdn_asset html:'0' library:'images'%]default_product.gif[%/cdn_asset%][%/param%][%/ASSET_URL%]" alt="[@content_name@]" class="img-fluid"/></a>
                        </div>
                        <div class="col-8">
                            <h4><a href="[@URL@]" itemprop="url">[@content_name@]</a></h4>
                            [%if [@content_short_description1@]%]
                                <p class="mb-0">[%format type:'text' rmhtml:'1' truemaxlength:'80'%][@content_short_description1@][%/format%]</p>
                            [%else%]
                                <p class="mb-0">[%format type:'text' rmhtml:'1' truemaxlength:'80'%][@content_description1@][%/format%]</p>
                            [%/if%]
                        </div>
                    </div>
                </article>
    [%/param%]
    [%param *footer%]
            </div>
        </section>
    [%/param%]
[%/thumb_list%]

If your blog posts have a parent (eg. the blog posts are children of the "Our Blog" parent page). Add the parameter filter_category:'72' to the thumb_list function to skip over the parent "our blog" page and only show child posts based on the date posted.

Eg. [%thumb_list type:'content' content_type:'blog' limit:'3' sortby:'date_posted-desc' filter_category:'72'%].


Final Result

Footer blog posts


Customising this Section

More information on how to customise this section can be found within the Thumb List Documentation.


Was this article useful?

Be notified when this page is updated. Optional.