All of my blog posts are on my Shopify Store but only 50 are visible. The theme is Horizon. I have 166 blog posts and I want them all visible in my store.
@sanderswoodworking 50 is likely the paging size. Which theme are you using? If you can share a URL to your blog page, that would also be helpful.
Horizon theme. Blog – Sanders Woodworking
Editing the code in sections/main-blog.liquid is likely required. If you’re comfortable doing so, follow these steps:
Create a duplicate theme for editing/testing. Do not work directly on your live theme.
- Go to Online Store > Themes
- Beside your published/live theme click … > Duplicate
- Then edit the duplicated theme under drafts > … > Edit code
- Open file sections/main-blog.liquid
Look for this section:
{% liquid
assign items_on_page = blog.articles.size
%}
{% for article in blog.articles %}
Add {%- paginate blog.articles by 250 -%} right above it, so it looks like this:
{%- paginate blog.articles by 250 -%}
{% liquid
assign items_on_page = blog.articles.size
%}
{% for article in blog.articles %}
Then find the matching closing tag:
{% endfor %}
and add the closing paginate tag after it:
{% endfor %}
{%- endpaginate -%}
So the structure should look like this:
{%- paginate blog.articles by 250 -%}
{% liquid
assign items_on_page = blog.articles.size
%}
{% for article in blog.articles %}
...
{% endfor %}
{%- endpaginate -%}
This should allow up to 250 articles to render on the page. For anything more, I recommend pagination, which would require additional edits.
To test:
- Online store > Themes > scroll down to Draft themes
- Click … beside the theme you just edited > Preview
displaying all blogs at once may slow down the page loading speed what i recommend is to create a new page template and display all blogs as title with clickable link. For enhancement you can display it as per category wise or you can create a tab system for all your blogs.
The issue is most likely coming from the blog pagination limit in the Horizon theme. By default, Shopify themes often limit the number of blog posts displayed on the blog page.
Since you have 166 blog posts, I can check the blog template and update the pagination settings so all posts are properly accessible and visible on your store.
If possible, please send the collaborator code and let me know which page is currently showing only 50 posts.
