Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Show more than 4 blog posts on Dawn theme

Solved

Show more than 4 blog posts on Dawn theme

sraschella
Tourist
6 1 4

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!

Accepted Solution (1)
sraschella
Tourist
6 1 4

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.

View solution in original post

Replies 16 (16)

suyash1
Shopify Partner
10130 1253 1593

@sraschella - did you check customize settings? if they have any option to increase number? else need to do it by editing the code.

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
sraschella
Tourist
6 1 4

Yes, the highest number I can choose is 4. Are you able to help me with editing the code?

suyash1
Shopify Partner
10130 1253 1593

@sraschella - can you accept me as collaborator? I will send request, then we can check section codes and increase numbers

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
sraschella
Tourist
6 1 4

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.

suyash1
Shopify Partner
10130 1253 1593

@sraschella - great, congrats

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Lighthousehydro
New Member
5 0 0

Is someone able to help me do this, I'm having the same problem but don't totally understand the soloution?

 

Thanks!

suyash1
Shopify Partner
10130 1253 1593

@Lighthousehydro - can you share your page link?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Lighthousehydro
New Member
5 0 0

Hi, 
Thanks for your reply - 

 

The page is https://lighthousehydro.com.au/blogs/learnmore

Is that what you mean?

suyash1
Shopify Partner
10130 1253 1593

@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.

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Lighthousehydro
New Member
5 0 0

 

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 >

Screen Shot 2023-09-16 at 9.16.20 am.png

 

Screen Shot 2023-09-16 at 9.11.40 am.png

 

Thank you for your help - 

suyash1
Shopify Partner
10130 1253 1593

@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

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Lighthousehydro
New Member
5 0 0

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

suyash1
Shopify Partner
10130 1253 1593

@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

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
PhillyKS
Visitor
1 0 0

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 

aurashades
Tourist
3 0 2

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.  

bandg
Tourist
4 0 0

this worked for me, thanks so much!!!