Change Blog Display - Venture Theme - 3 blogs per row

Solved

Hey guys,

I had this working at one point but it got nuked and now I cannot find the answer anywhere.  I am using Venture Theme and the blog images by default are gigantic and one per row.  I'd like them to be (3) per row.  I found a post where they had coded it for (2) and I tried to play with that but then they were all squished together.  

How can I fix it so that they display in a row of (3)?

If needed, my store is www.trippingcherry.com and the password is twueth. 

 

 

Brittany
Tripping Cherry Apparel Co
0 Likes
Michael_Pink
Trailblazer
223 36 46

This is an accepted solution.

follow this path:
Themes => edit code => templates => blog.liquid
and replace your code by this

{% paginate blog.articles by 5 %}
<div class="page-width">
  <h1>
    {% if current_tags %}
      {{ current_tags.first }}
    {% else %}
      {{ blog.title }}
    {% endif %}
    <a href="{{ shop.url }}{{ blog.url }}.atom" class="blog__rss-link link-accent-color">
      {% include 'icon-rss' %}
      <span class="icon__fallback-text">RSS</span>
    </a>
  </h1>
  <div class="grid">
    <div class="grid__item {% if blog.all_tags.size > 0 %} medium-up--three-quarters large-up--four-fifths{% endif %}">
  <div class="grid">
      {% for article in blog.articles %}
      <div class="medium-up--one-third grid__item">
        <div class="content-block">
          <p class="blog__meta">
            {% if article.tags.size > 0 %}
              {% for tag in article.tags %}
                <a href="{{ blog.url }}/tagged/{{ tag | handle }}" class="link-body-color"><strong>{{ tag }}</strong></a>{% if forloop.last %} - {% else %}, {% endif %}
              {% endfor %}
            {% endif %}
            {{ article.published_at | time_tag: format: 'date' }}
          </p>
          <h2 class="blog__title-link"><a href="{{ article.url }}">{{ article.title }}</a></h2>
          {% if article.image %}
            <div class="content-block__full-image content-block__full-image--large">
              <a href="{{ article.url }}">
                <noscript>
                  {{ article | img_url: '1024x1024' | img_tag: article.title | escape }}
                </noscript>
                <div class="article__photo-container">
                  <div class="article__photo-wrapper" style="padding-top:{{ 1 | divided_by: article.image.aspect_ratio | times: 100}}%;">
                  {% assign img_url = article.image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %}
                    <img class="lazyload"
                      src="{{ article.image | img_url: '300x300' }}"
                      data-src="{{ img_url }}"
                      data-widths="[360, 540, 720, 900, 1080, 1296, 1512, 1728, 2048]"
                      data-aspectratio="{{ article.image.aspect_ratio }}"
                      data-sizes="auto"
                      alt="{{ article.title | escape }}">
                  </div>
                </div>
              </a>
            </div>
          {% endif %}

          <div class="rte rte--indented-images">
            {% if article.excerpt.size > 0 %}
              {{ article.excerpt }}
            {% else %}
              <p>{{ article.content | strip_html | truncatewords: 50 }}</p>
            {% endif %}
          </div>
          <p><a href="{{ article.url }}"><strong>{{ 'blogs.article.read_more' | t }}</strong></a></p>
        </div>
      </div>
      {% endfor %}
      </div>
    </div>
    {% if blog.all_tags.size > 0 %}
      <div class="grid__item medium-up--one-quarter large-up--one-fifth small--hide">
        <div class="content-block content-block--small">
          <h6 class="content-block__title">{{ 'blogs.article.tags' | t }}</h6>
          <ul class="list--no-bullets list--bold">
            <li>
              <a href="{{ blog.url }}">{{ 'blogs.article.all_tags' | t }}</a>
            </li>
            {% for tag in blog.all_tags %}
              {% if current_tags contains tag %}
              <li>{{ tag }}</li>
              {% else %}
              <li>{{ tag | link_to_tag: tag }}</li>
              {% endif %}
            {% endfor %}
          </ul>
        </div>
      </div>
    {% endif %}
  </div>
  {% section 'featured-products-subsection' %}
  {% if paginate.pages > 1 %}
    <div class="pagination">
      {{ paginate | default_pagination | replace: '&laquo; Previous', '&larr;' | replace: 'Next &raquo;', '&rarr;' }}
    </div>
  {% endif %}
</div>
{% endpaginate %}

 

 

My life is sharing.
I hope my solution can help you save at least 1$
Build Page faster with PageBuilder App.
shopify.expert.team@gmail.com

That worked, thank you! 

Brittany
Tripping Cherry Apparel Co
0 Likes
showbarnlife
Tourist
8 0 2

Ok so how do you add blogs once you're back on the customize page after you've added the above code? I see no change and I still can only add one blog to it. ??

0 Likes