Answer the question
In order to leave comments, you need to log in
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.
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question