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

Adjust Gaps on Main Page and Collection Pages

Solved

Adjust Gaps on Main Page and Collection Pages

lucianofashion1
Excursionist
14 0 3

Hi, i am using theme BLOCKSHOP v10.2.0  CLICK HERE TO SEE 

See Image below, i would like to make the gaps Narrow in between the Main Page "Grid With Overlay" and also the Collection Page images.

Any help would be appreciated.

Gaps collection page.pngGaps.png

Accepted Solution (1)

Mehran_Ali
Shopify Partner
416 52 65

This is an accepted solution.

Hi @lucianofashion1 

 

You can achieve this by adding this CSS code I believe you don't want to remove the gap just wanted to minimize it right
You just need to follow these steps:

1) Go to the Online Store
2) Edit Code
3) Find theme.css / base.css


And past that CSS Code:

.featured-grid--body {
    gap: 15px;
}

.featured-grid--root {
    padding-top: 40px;
}

 

The Result:

Mehran_Ali_0-1732631024696.png

 

This CSS is for the Collection Page Gap pasted into the same file name as base.css or theme.css :

.main-collection--grid {
    gap: 10px;
}

The Result:

Mehran_Ali_1-1732631138065.png

 

If you want the gap to be complete;y remove just change the value of gap to 0

 

I hope this solution works for you!
If it does, please Like It and Mark It As A Solution, or support me by Buying Me A Coffee to keep me going!

 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

View solution in original post

Replies 9 (9)

Moeed
Shopify Partner
6330 1716 2069

Hey @lucianofashion1 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.featured-grid--body {
    gap: 0 !important;
}
</style>

RESULT:

Moeed_0-1732630713439.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


lucianofashion1
Excursionist
14 0 3

Sorry. For Main Page.
I still want a gap but very narrow, on the edges of the screen and in between horizontal and vertical.

For the Collection Pages:
I still want a gap but very narrow, on the edges of the screen and in between horizontal and vertical.


Mehran_Ali
Shopify Partner
416 52 65

This is an accepted solution.

Hi @lucianofashion1 

 

You can achieve this by adding this CSS code I believe you don't want to remove the gap just wanted to minimize it right
You just need to follow these steps:

1) Go to the Online Store
2) Edit Code
3) Find theme.css / base.css


And past that CSS Code:

.featured-grid--body {
    gap: 15px;
}

.featured-grid--root {
    padding-top: 40px;
}

 

The Result:

Mehran_Ali_0-1732631024696.png

 

This CSS is for the Collection Page Gap pasted into the same file name as base.css or theme.css :

.main-collection--grid {
    gap: 10px;
}

The Result:

Mehran_Ali_1-1732631138065.png

 

If you want the gap to be complete;y remove just change the value of gap to 0

 

I hope this solution works for you!
If it does, please Like It and Mark It As A Solution, or support me by Buying Me A Coffee to keep me going!

 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

lucianofashion1
Excursionist
14 0 3

Hi, i still have Gaps on the edges on Mobile?

Screenshot_20241126_143347_Chrome.jpgScreenshot_20241126_143401_Chrome.jpg

Mehran_Ali
Shopify Partner
416 52 65

Hi @lucianofashion1 

 

add this CSS

.featured-grid--root, .main-collection--root {
    padding-inline: 5px;
}

as well with the others it will resolve the mobile issue 

 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

lucianofashion1
Excursionist
14 0 3

One last thing sorry.

Product Page on Mobile i want 5px gaps on edges can you help? Thanks
5px.jpg

Mehran_Ali
Shopify Partner
416 52 65

Sure add this CSS 

.main-product--root {
    padding-inline: 5px;
}

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

lucianofashion1
Excursionist
14 0 3

Much appreciated, One more thing.

Collection Header on Mobile and Desktop. too much White Above and Below and on edges, can you resolve?

Thanks

Description.jpg

Mehran_Ali
Shopify Partner
416 52 65

Sure here is the CSS

@media(max-width:768px){
    .collection-header--heading {
        padding: 10px 5px 5px !important;!i;!;
    }
    
    .navigation--mobile-header {
        padding-top: 0 !important;!i;!;
    }
}

 

I hope this solution works for you!
If it does, please Like It and Mark It As A Solution, or support me by Buying Me A Coffee to keep me going!

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536