S
S
Smartaleck2021-01-26 12:02:16
Debugging
Smartaleck, 2021-01-26 12:02:16

How to get rid of blank lines in Wordpress template?

Hello. Please don't kick too hard, I'm just learning. There are empty lines in the theme code, that is, the Doctype declaration starts from line 6. I searched in all templates: index.php, header.php and so on, but I didn't find these empty lines. Tell me where to look.
600fda920444a388642668.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Zolin, 2021-01-27
@artzolin

See header.php, just checked, if you add empty lines in front - they will be in the front
. Alternatively, you can use optimization or caching plugins that compress html and remove unnecessary garbage, such as empty lines and spaces

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question