3

After implementing among others the Facebook Pixel, there is a strange white-space above the header of our magento website: https://www.oplader.com

Does anybody have any idea what this could be? Even with DevTools there is no way to find out.

2

In browser console, if you see header it would look fine:
enter image description here

But if you edit it's html you will see a special character here before header

enter image description here

Remove this special character and this strange space will remove

enter image description here

You need to look in your code something is printing that causing this

|improve this answer|||||
  • Unbelievable how you spotted it that quickly, thanks. My next challenge is how to find what code is printing this. It are 3 spaces (1 tab?) and I can't find any code that is printing it. Any less clean way to solve it for now? – Hugo Gerritsen Jul 4 '19 at 19:27
  • I believe this should do the trick for now: var text = $('.page-wrapper').html().replace(' ', ''); $('.page-wrapper').html(text); You can't see the dot on Stackoverflow, but in the code it is there. – Hugo Gerritsen Jul 4 '19 at 19:45
  • This could be a quick fix. But you need to find in code. something is defiantly printing – Shoaib Munir Jul 5 '19 at 4:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.