White space on top of page won't get removed

White space on top of page won't get removed

herahera
Visitor
2 0 1

there's a white space on top of the page of my website, I've been trying to find the code to remove it, or override it with other codes such as the code below, but nothing is working pls help. the website is herajewelleryeg.com

 

body, html { margin-top: 0 !important; padding-top: 0 !important; } .shopify-section:first-child { margin-top: 0 !important; padding-top: 0 !important; } header, .header-wrapper, .announcement-bar, .announcement-bar-section { margin-top: 0 !important; padding-top: 0 !important; } .page-width, .main-content { margin-top: 0 !important; padding-top: 0 !important; }

Replies 4 (4)

Emre_SecretHero
Shopify Partner
28 2 2

Hi @herahera,

Hi! I inspected your site and noticed there's a hidden character at the top of the page: &ZeroWidthSpace . It's an invisible character that can still take up vertical space and cause layout issues.


Here's how to fix it:

  1. Go to Online Store -> Themes -> Customize
  2. Check each section at the top of your homepage, especially Custom Liquid, Rich Text, Custom HTML.
  3. If you see something like ​ or ​ just delete it and save.

Hope it helps.
Let me know when you need further guidance.

Good luck.

 

- Helpful? Like & Accept the solution!
-  SecretHero: Boost Shopify store sales & loyalty through gamified experiences with the power of mobile games.
-  Launching in June! Subscribe now on our waitlist for early access.
- Questions? Reach me at serhat@secrethero.io or LinkedIn: Serhat Emre Cebeci

Jack_Khan_Baba
Shopify Partner
131 9 17

you have added text right after the body tag start.

Jack_Khan_Baba_0-1747173141190.png



to remove it go to theme.liquid and check in body tag.
or provide me collabrative access

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Chat on WhatsApp: +923143054166
Need a Shopify developer? Hire us at naimatullahts335@gmail.com
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.

Kyle_liu
Shopify Partner
438 55 80

Hi @herahera 

 

Please edit your theme code and search for information about '@ ZeroWidthSpace'; ”The relevant code may only display a simple line break during code editing

Kyle_liu_0-1747191674708.png

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee

DaisyVo
Shopify Partner
4469 501 598

Hi @herahera 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file theme.liquid and remove this code 

DaisyVo_0-1747216333928.png

 

Best,

DaisyVo

 

 

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

Avada SEO & Image Optimizer - The #1 SEO solution