Remove the white space under the banner

Solved

Remove the white space under the banner

Olivier10
Tourist
13 0 1

Hello,

 

I'm trying to Remove the white space between the banner and the top of the site. 

Just Below the fav, but under the banner.

PJ 1.JPG


My template only provide with "section height" , i managed to put the maximum space between blocks as a 0 value, but now, i feel like i have to "create" a new "option of height" with 0 space, and it feel complicated. 

 

 

PJ 2.JPG

If anyone have a easy, even a hard way for this? If not, i will just look for a developper.

My theme is Enterprise.

Accepted Solution (1)
Javitoo
Shopify Partner
28 5 5

This is an accepted solution.

Hi there! I totally understand what you're trying to do - those extra spaces can be really annoying when you're aiming for a specific look!
Let me help you with a simple solution that should work with your Enterprise theme.

 

To remove that white space between the banner and the top of your site, you'll need to add a small piece of CSS code. Here's how:

 

First, try looking for any of these files in your theme editor (Online Store → Themes → Actions → Edit code):

- custom.css
- theme.css
- base.css
- styles.css

 

and add this line to the end:

 

.section--padded-xsmall {
    padding-top: 0 !important;
}

 

 

If you can't find any of those CSS files, don't worry! You can add the code to your theme.liquid file instead:

Find "theme.liquid" in your theme files
Look for the closing  "</head>" tag
Add this code just before that tag:

 

<style>
.section--padded-xsmall {
    padding-top: 0 !important;
}
</style>

 

 

Result:

JavierMiz_0-1739899739648.png

 

If this helped you, Likes and Accept as Solution are highly appreciated!
Contact me at javiermizarevalo@gmail.com for custom development help 
Like my help? Buy me a coffee

View solution in original post

Replies 7 (7)

Javitoo
Shopify Partner
28 5 5

Hi @Olivier10 can you share a link to your store so I can inspect what can be causing the issue?

If this helped you, Likes and Accept as Solution are highly appreciated!
Contact me at javiermizarevalo@gmail.com for custom development help 
Like my help? Buy me a coffee
Olivier10
Tourist
13 0 1

The thing is, i'm still currently working on it as a draft, and i didn't put it online yet ! Here is the link but it wont appear i guess ? https://sofareva-literie.myshopify.com/ 

Javitoo
Shopify Partner
28 5 5

You are right, I can't see it
But you can share a preview link, look if this help you to show a preview here:
https://community.shopify.com/c/shopify-design/how-can-i-share-an-unpublished-theme-preview-link/td-...

If this helped you, Likes and Accept as Solution are highly appreciated!
Contact me at javiermizarevalo@gmail.com for custom development help 
Like my help? Buy me a coffee
Javitoo
Shopify Partner
28 5 5

This is an accepted solution.

Hi there! I totally understand what you're trying to do - those extra spaces can be really annoying when you're aiming for a specific look!
Let me help you with a simple solution that should work with your Enterprise theme.

 

To remove that white space between the banner and the top of your site, you'll need to add a small piece of CSS code. Here's how:

 

First, try looking for any of these files in your theme editor (Online Store → Themes → Actions → Edit code):

- custom.css
- theme.css
- base.css
- styles.css

 

and add this line to the end:

 

.section--padded-xsmall {
    padding-top: 0 !important;
}

 

 

If you can't find any of those CSS files, don't worry! You can add the code to your theme.liquid file instead:

Find "theme.liquid" in your theme files
Look for the closing  "</head>" tag
Add this code just before that tag:

 

<style>
.section--padded-xsmall {
    padding-top: 0 !important;
}
</style>

 

 

Result:

JavierMiz_0-1739899739648.png

 

If this helped you, Likes and Accept as Solution are highly appreciated!
Contact me at javiermizarevalo@gmail.com for custom development help 
Like my help? Buy me a coffee
Olivier10
Tourist
13 0 1

Worked perfectly, thanks ! 

Made4uo-Ribe
Shopify Partner
10048 2389 3016

Hi @Olivier10 

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:

 

div#sections--24656935584089__scrolling_banner_AcxMCp {
    padding-top: 0 !important;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1739897848501.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.
Olivier10
Tourist
13 0 1

Thanks, helped me a lot to understand better ! 

Have a nice day