remove spacing

Topic summary

A user seeks help removing unwanted spacing on their Dawn theme Shopify store (mansaroverfurnishings.com). Multiple contributors provide CSS solutions to reduce margin below the header section.

Initial Problem Solved:

  • Several users offer similar fixes: adding CSS code to theme.liquid file targeting .section-header or .shopify-section-group-header with margin-bottom: 0 !important for desktop screens (min-width: 750px)

Follow-up Requests:
The original poster then requests additional modifications:

  • Search icon repositioning: Move search icon to opposite side (left) on desktop only
  • Search bar background color: Change to white (#fff) for all pages
  • Solutions provided using absolute positioning and background color overrides

Bug Encountered:

  • Search bar white background initially only worked on homepage
  • Fixed by wrapping code in conditional template check or applying globally

Additional Issues Raised:

  • Image slider with text not working properly (arrows malfunctioning, displaying incorrectly)
  • Unwanted element appearing under featured collection
  • Solution provided to hide .swym-button element with display: none

The thread remains active with ongoing troubleshooting for the slider issue.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

hii im using dawn theme i want to remove this space please help me with code, reference image is also attached

Website link : https://mansaroverfurnishings.com/

Current :

Reference image:

1 Like

Hey @manan123

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 tag


RESULT:

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

Best Regards,
Moeed

1 Like

Hi @manan123 ,

Step 1: Go to Shopify Admin β†’ Online Store ->Theme β†’ Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like

Hello @manan123

You can add code by following these steps

  1. Go to Online Store β†’ Theme β†’ Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

@media screen and (min-width: 750px) { .shopify-section-group-header-group.section-header { margin-bottom: 0 !important; }

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

1 Like

Hello @manan123

Go to online store ----> themes ----> actions ----> edit code---->base.css
add this code at the end of the file.

@media screen and (min-width: 750px) {
.section-header {
margin-bottom: 20px !important;
}
}

result

If this was helpful, hit the like button and accept the solution.
Thanks

1 Like

Thankyou! so much , i need one more help i want to place search icon opposite side , please help me i attached ss below for refrence

Thankyou! so much , i need one more help i want to place search icon opposite side , please help me i attached ss below for refrence

manan123_0-1725970393079.png

1 Like

Thankyou! so much , i need one more help i want to place search icon opposite side , please help me i attached ss below for refrence

manan123_0-1725970416146.png

Thankyou! so much , i need one more help i want to place search icon opposite side , please help me i attached ss below for refrence

manan123_0-1725970444078.png

Hi @manan123 ,

Step 1: Go to Shopify Admin β†’ Online Store ->Theme β†’ Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like

Thanks! but sorry i forgot to tell you that i want it for only desktop devices , please give the code again & also want white background colour of search bar

1 Like

Hi @manan123 , Pls replace my old code to this new code:


Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like

You can add code by following these steps

  1. Go to Online Store β†’ Theme β†’ Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

@media screen and (min-width: 990px) { summary.header__icon.header__icon--search { position: absolute !important; left: 5%; top: 20%; } } .search-modal.modal__content.gradient { background: #fff !important; } input#Search-In-Modal, div#predictive-search-option-search-keywords { background: #fff !important; }

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

1 Like

Thanks its solved , can you please help me to change the background colour of search bar also

I want it white

Hii, Thanks but outer colour is changed but inner colour is not changed please give me updated code

1 Like

Hi @manan123 ,

Step 1: Go to Shopify Admin β†’ Online Store ->Theme β†’ Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like

Add this code also

You can add code by following these steps

  1. Go to Online Store β†’ Theme β†’ Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.predictive-search { background: #fff !important; }

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

1 Like

Thank you sooo muchh!!

1 Like

@manan123 , No problem. Glad to help you :heart_eyes:

1 Like

Thanks man you made my day!!

1 Like