Blogs

Abdurrehman
Shopify Partner
13 1 0

How do show blogs in chronological order in the dawn theme? Please help me if anyone know

 

Replies 2 (2)

nidhipatel
Pathfinder
89 20 22

Hi @Abdurrehman 

 

I understood your concern. I came to know that you have to add custom code to main-blog.liquid file. I hope this can help you to resolve the issue.

 

 

 

{% assign blogArticles = blog.articles | reverse %}
{%- for article in blogArticles -%}
  <div class="blog-articles__article article">
  {%- render 'article-card', article: article, show_image: section.settings.show_image -%}
  </div>
{%- endfor -%}

 

 

 

Please check the attached screenshot:

AL Development store one _ Edit _ Copy Of Dawn _ Shopify (1).png

 

Thank you.

If our answer is helpful then please feel free to Like and Accept it as solution!
Hire our Shopify Developers for all your small & big needs:
New Store Development | Custom Theme Development | Site Speed Optimization
Email: hello@mintyourstore.com | Instagram: @mintyourstore
Abdurrehman
Shopify Partner
13 1 0

Thanks really appreciate your help 🙂