Version 1.1.9.1 [hotfix: Empty blog issue]

On the 27th of February 2019, we have discovered an issue with the blog page on some of the stores using our Split theme. This issue seems to be caused by a change in Shopify's core code in the way it interprets one line of our theme's code. We hope that it will get sorted out soon without the need of updating the code, but we have also prepared a hotfix for the issue.

So if your blog page is empty, follow the steps below to fix this problem:

  1. Go to the theme editor (read this article for more info)
  2. Choose / sections/blog.js and search for this line:

    {% assign blog_count = blog.articles_count | times: 1 %}
    	

    Replace it with the following:

    {% assign blog_count = blog.articles.size %}
    	
  3. Save the files!

If you have the same issue on your homepage, open /sections/home_blog-posts.liquid and this time search for the following line:

{% assign blog_count = blogs[section.settings.home_blog_select].articles_count | times: 1 %}

Replace it with the following:

{% assign blog_count = blogs[section.settings.home_blog_select].articles.size %}