Local Include problems - see link


#1

Hi. I am trying to develop my site locally but have some issues.

1. When including files:

<html>
<head> ... all default from coded files </head>
<body>
...
{% include 'custom/blog/common/about_us.html' %}
            {% include 'custom/blog/common/subscribe-box.html' %}.
..
</body>
</html>

The preview of the blog imports the head content inside body tag.

https://mp-design-dev-3426147-3426147.hs-sites.com/blog

  1. Alot of

“&#65279

appers inside the body content which affects the margins.

Kind regards.


#2

Hi @mariusw,

&#65279 is the Unicode Character ‘ZERO WIDTH NO-BREAK SPACE’ (U+FEFF). After some digging online, it appears this can sometimes make its way into code since it’s not visible in editors that display unicode characters. The following stackoverflow topic has some pointers on eliminating these characters, the simplest of which is to copy your code into an editor that does not display unicode characters and delete them.


#3

Thanks Derrick. Do you have any idea what is happening with the head information appearing in the body tag?

https://mp-design-dev-3426147-3426147.hs-sites.com/blog