Question: I am working on loading a template part into my theme. The get\_template\_part(); function works the way it is supposed to be, but it always inserts an empty line before itself.

Here is how it looks in the firebug:

![Firebug view](https://i.stack.imgur.com/5ouBa.png)

This is how it's coded in php:

![Server-side view](https://i.stack.imgur.com/q8p1l.png)

This is the content of polecane.php, only one line:
![This is the content of polecane.php, only one line](https://i.stack.imgur.com/t9Srh.png)

What might be the problem? I have to get rid of that empty line because it messes up my layout.

EDIT: This does **NOT** work:
`<div class="homepageright"><?php get_template_part('polecane'); ?></div>`

Answer: 
I've found the solution. DaveChen's idea with BOM was good, I simply changed the charset for one file only, istead of doing it for both of them. Thank you, now it works.

Answer:
Set encoding to UTF-8 without BOM for every file involved.
Try this:

```
<div class="homepageright"><?php get_template_part('polecane'); ?></div>

```