Change Padding Between Header And Section

Solved

Change Padding Between Header And Section

corp41
Excursionist
47 0 5

Hello,

 

I'm trying to increase the space between the header and the featured collection on my Homepage. I'm not sure exactly where to find the code to do it. Anyone able to assist? My site is password protected, but I can send a collaborator code.

 

Thanks

 

Screenshot 2025-01-19 at 3.59.59 PM.png

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
9884 2354 2951

This is an accepted solution.

Yes, replace to this code. 

 

@media only screen and (min-width: 749px) {
  .featured-collection {
    padding-top: 5rem;
  }
}

 

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 8 (8)

Made4uo-Ribe
Shopify Partner
9884 2354 2951

Hi @corp41 

Please, share your store URL or preview. I dont need a collaboration access. THanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
corp41
Excursionist
47 0 5

Just sent you a message with that info! Thanks!

Made4uo-Ribe
Shopify Partner
9884 2354 2951

Thanks for the info, try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

.featured-collection {
    padding-top: 80px;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1737326641476.png

     

 

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
corp41
Excursionist
47 0 5

That worked perfectly. Is there a way to make it where the change only affects desktop and not mobile? It pushes the mobile view a little too far down.

Made4uo-Ribe
Shopify Partner
9884 2354 2951

This is an accepted solution.

Yes, replace to this code. 

 

@media only screen and (min-width: 749px) {
  .featured-collection {
    padding-top: 5rem;
  }
}

 

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
corp41
Excursionist
47 0 5

Worked perfectly, thank you for your help!

EstherBui
Excursionist
275 39 42

Hi Corp41

- You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css, style.css or theme.css and add this code at the end of the file

 

@media (min-width: 768px) {
  .featured-collection {
     padding-top: 80px !important;
  }
}

 

Best,
Esther

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

corp41
Excursionist
47 0 5

Thanks for that, it didn't seem to work.