Shopify themes, liquid, logos, and UX
I'm using the Dawn theme and would like to display more than 4 blog posts on the Default Blog page, using the Blog Post block. Is there a way I can up that number? I'd like to have at least 16, then have pagination or use the VIEW ALL.
Also, is there a way to add a filter to the blog posts by topic? I don't see any options.
Thanks!
Solved! Go to the solution
This is an accepted solution.
I figured it out! It looks like the section that was set as the default on the defualt blog page shows everything and I had changed it to the block section called Blog Posts. I thought it was the same because it's called the same thing (confusing).
In case anyone else needs it, I just pasted the original code found here: https://github.com/Shopify/dawn/blob/main/templates/blog.json back under blog.json.
@sraschella - did you check customize settings? if they have any option to increase number? else need to do it by editing the code.
Yes, the highest number I can choose is 4. Are you able to help me with editing the code?
@sraschella - can you accept me as collaborator? I will send request, then we can check section codes and increase numbers
This is an accepted solution.
I figured it out! It looks like the section that was set as the default on the defualt blog page shows everything and I had changed it to the block section called Blog Posts. I thought it was the same because it's called the same thing (confusing).
In case anyone else needs it, I just pasted the original code found here: https://github.com/Shopify/dawn/blob/main/templates/blog.json back under blog.json.
@sraschella - great, congrats
Is someone able to help me do this, I'm having the same problem but don't totally understand the soloution?
Thanks!
@Lighthousehydro - can you share your page link?
Hi,
Thanks for your reply -
The page is https://lighthousehydro.com.au/blogs/learnmore
Is that what you mean?
@Lighthousehydro - please check your blog template, blog.json.liquid.. check if you have any settings like limit= 4 or posts = 4
also please open this page in customize settings and check if you have an option to increase blog posts in it.
Hi thanks for your reply,
The custom settings only allow up to 4 blog posts to be shown, and the View all button doesn't seem to work.
In the CSS i can only see blog.json, not blog.json.liquid
There is a part saying:
"post_limit": 4,
"columns_desktop": 4,
but if i try to increase the number next to post limit it give mes a notification as per the picture below >
Thank you for your help -
@Lighthousehydro - i think this setting is for a single row, if you add more than 4 posts, they can squeeze on smaller screens and hence they are not allowing it
also you have view all button means not more than 1 row of posts will be shown on home page
Oh okay -
Are you able to let me know what the code that i should be looking for may start with so i can find the area that allows me to add more rows?
If i toggle the "view all" button off, it doesn't let me see all the blogs - just the same 4 remain, minus the view all button. But the view all button doesn't seem to lead anywhere anyway -
Any help appreciated
@Lighthousehydro - please check customize settings for this section, there will be a section to link view all button to blog posts,
since you want more posts to show, this is completely different theme functionality than original theme, you will need to edit code, for that you may need someone expert.
You can also contact theme support to check if they have any recommendation or can do the chagnes
Hmmmm I am alsw trying to figure out what my blog posts (recipes) custom settings on 'Dawn Theme' is.... so that I can show more than 4 posts... (agree with Srachella who initially posted re this, it would be more intuitive to show more than 4 posts - I'd like to show about 12, then go to pagination I guess.
Are you perhaps able to advise me
I know that I have (inherited form Dev) 1 x default blog template that we have namesd'recipes' & 'news' & I am now trying to add more posts, resulting in this issue on the ;Recipes' page ! & same issue will surface when I add ;News; posts annoyingly
Not sure if anyone of you still face this issue, but here's my solution and it works for me.
I'm currently on DAWN 15.2.0 and in your themes, you should edit featured-blog.liquid. The code is somewhere 3/4 length of the post.
{
"type": "range",
"id": "post_limit",
"min": 2,
"max": 4,
"step": 1,
"default": 3,
"label": "t:sections.featured-blog.settings.post_limit.label"
},
You need to change the "max":X, where X is the number of blogs you wish to have.
For my case, I put it to 12. save it, and refresh your blog. should work.
https://aurashades.co/blogs/the-aura-times
This is my blog now. It's showing more than 4.
this worked for me, thanks so much!!!
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024