Having Related Products is great but if you have a lot of content or find displaying Pro Bloggers Related Products and Pro Bloggers Related Article at the footer of your post too busy... Well then the following solution is great for you!


It does take a little coding familiarity to implement but here is what you do


  1. Edit your Article.liquid or article-template.liquid file
  2. Then locate where your article.content is and replace with the following
{% capture article_contents %}
            {{ article.content }}
{% endcapture %}

{% if article_contents contains '<!-- related products -->' %} 
            {% assign char_split = '<!-- related products -->' %}
          {% else %}
            {% assign char_split = '</p>' %}
          {% endif %}
          {% assign arrparagraphs = article_contents | split: char_split %}
          {% if arrparagraphs.size > 1 %}
          {% assign middle = arrparagraphs.size | divided_by: 2 | round %}
          {% for paragraph in arrparagraphs limit:middle %}
            {% assign top_contents = top_contents | append: paragraph | append: "</p>" %}
          {% endfor %}
          {% assign article_contents  = top_contents %}
          {% for paragraph in arrparagraphs offset:middle %}
            {% assign content_split = content_split | append: paragraph | append: "</p>" %}
          {% endfor %}
          
{% endif %}
{{ article_contents }}
          
{% unless article.tags contains 'norelprod' %}
           {% include 'pro-blogger.snippet.related-products' %}   
 {% endunless %}
 {{ content_split }}