Solved

How can I increase the number of blog post columns to 5 instead of 3?

Ammzish
Shopify Partner
30 1 6

I want to increase the number of blog post columns which is currently 3 columns I want it to be 5.

For this website: https://marketingpropertee.com/blogs/news

Someone from the Shopify community recommended inserting this code in the theme.liquid

<style>
 .page-content {
    max-width: unset !important;
 }
 @media only screen and (min-width: 769px) {
   .medium-up--one-third {
     width: 20% !important;
   }
 }
</style>

and replacing this code

Ammzish_0-1716465293804.png

I followed all the instructions and it worked but it is changing all grids from the website I only want it to change for the blog page.

Accepted Solutions (2)

Made4uo-Ribe
Shopify Partner
6373 1530 1899

This is an accepted solution.

Hi @Ammzish 

do you mean like this right? 

Made4uoRibe_0-1716466293948.png

If it is check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

div#shopify-section-template--15625122676815__main .grid.grid--uniform {
    display: flex;
    flex-wrap: wrap;
}
@media only screen and (min-width: 769px) {
div#shopify-section-template--15625122676815__main .medium-up--one-third {
        max-width: 20%;
    }
}

 

And Save. 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.

View solution in original post

ZestardTech
Shopify Expert
5595 1016 1341

This is an accepted solution.

Hi @Ammzish 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.css and paste this at the Top of the file:

 

@media only screen and (min-width: 769px) {
.medium-up--one-third {
width: 20%!important;
clear: none!important;
float: right;
}
}

 

ZestardTech_0-1716467300984.png

 

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

View solution in original post

Replies 9 (9)

ZestardTech
Shopify Expert
5595 1016 1341

Hi @Ammzish 

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.css and paste this at the bottom of the file:

 

@media only screen and (min-width: 769px) {
.medium-up--one-third {
width: 20%!important;
clear: none!important;
float: right;
}
}

 

ZestardTech_0-1716466166996.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
Ammzish
Shopify Partner
30 1 6

Thank you for the reply, I pasted the code you provided and it did nothing. and I want to let you know that the code I mentioned above I removed it from the theme.liquid and I replace back the code to (.grid--uniform .medium-up--one-third:nth-of-type(3n+1)) do I still need to replace it to 5n+1?

Ammzish_0-1716466734928.png

Ammzish_1-1716466753529.png

 

ZestardTech
Shopify Expert
5595 1016 1341

This is an accepted solution.

Hi @Ammzish 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.css and paste this at the Top of the file:

 

@media only screen and (min-width: 769px) {
.medium-up--one-third {
width: 20%!important;
clear: none!important;
float: right;
}
}

 

ZestardTech_0-1716467300984.png

 

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
Ammzish
Shopify Partner
30 1 6

Thank you, I pasted the code at the top of the file and it worked. However, it is changing the entire website grid. I tried the same code someone else provided for a specific section, and it only worked for the blog page.

div#shopify-section-template--15625122676815__main .grid.grid--uniform {
display: flex;
flex-wrap: wrap;
}
@media only screen and (min-width: 769px) {
div#shopify-section-template--15625122676815__main .medium-up--one-third {
max-width: 20%;
}
}

ZestardTech
Shopify Expert
5595 1016 1341

Hi @Ammzish 

The above code will work for everyone, and the below code will only work for the news blog page.

 

 

@media only screen and (min-width: 769px) {
div#shopify-section-template--15625122676815__main .medium-up--one-third {
width: 20%!important;
clear: none!important;
float: right;
}
}

 

 

Let me know if you need further assistance!

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

Made4uo-Ribe
Shopify Partner
6373 1530 1899

This is an accepted solution.

Hi @Ammzish 

do you mean like this right? 

Made4uoRibe_0-1716466293948.png

If it is check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

div#shopify-section-template--15625122676815__main .grid.grid--uniform {
    display: flex;
    flex-wrap: wrap;
}
@media only screen and (min-width: 769px) {
div#shopify-section-template--15625122676815__main .medium-up--one-third {
        max-width: 20%;
    }
}

 

And Save. 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Ammzish
Shopify Partner
30 1 6

@Made4uo-Ribe Thank you for your help, Yes I want it exactly like this. I pasted the code and it is not working.

Ammzish_0-1716467314547.png

 

Ammzish
Shopify Partner
30 1 6

@Made4uo-Ribe  I pasted on the top of theme.css and it worked thank you so much for helping.

Made4uo-Ribe
Shopify Partner
6373 1530 1899

Welcome, you can also paste the code on the custom.css in the customize theme editor. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.