Wednesday, July 23, 2014

a workaround for wordpress blank line issue

Yoast wordpress SEO 

wordpress error on line 2 at column 6: XML declaration allowed only at the start of the document

There is a simple solution for this. It doesn’t require some crazy plugin. It doesn’t require hiring a super hacker geek to fix it AND it won’t require hours upon hours of Google’ing for the solution.

Now, if you want to try there are a few possible solutions. You can try:

  1. Reading this helpful article on the RSS Validator site:
  2. Try the FIX RSS FEED plugin for WordPress (didn’t work for my clients site at all)
  3. Paying someone lots of money [like me Wordpress Remove Blank Line From RSS Feed   wordpress error on line 2 at column 6: XML declaration allowed only at the start of the document ] to do it for you.

Or you can simply do this yourself. It’s REALLY really simply and only require one file upload and one line of code. I’ll guide you through the whole process.

1) FIRST. Download the following file

If you’re a geek you can check it for yourself, but I (Piotr Krzyzek) assure you this file is Virus free. If you don’t trust that file, you can download the exact same file from my server which I won’t change at all. So you can 100% rest assure that this file is safe from my server. You can get it HERE from my server. But if you download it from my server, rename the file from the “.ph” extension to “.php” so that it will work on your server too.

2) After downloading, upload the .PHP file into your WordPress site ROOT directory. This means wherever the wp-config.php file is. Do NOT upload it into the themes folder, NOR the plugins folder. Only the root directory.

If you don’t understand that, it’s ok. Leave a comment or poke me a twitter and I’ll explain it better.

3) EDIT your index.php file and add the following right after the first line:


So at the end, your index.php should look something like this:

define('WP_USE_THEMES', true);

That’s of course a condensed version of the index.php file and your’s will probably have lots of comments and stuff in it. But the important thing is to add the include code right at the top.


Sharon Stone said...

Taking advantage of free WordPress SEO Training is not optional and there are no excuses when it comes building you fan base. official site This is where a second type of WordPress SEO plugin comes in.

Ab Devilliers said...

There are a number of questions and answers sites and you can post questions, answers on relevant topics, pass the link to your client website along with the answers click here now When a website maintains its top ranking, it will be more visible to online users.

laelerabey said...

Casinos Near Me | DRMCDC
The only place to play slots is in our casino. The hotel offers a comfortable, 제천 출장샵 modern 원주 출장마사지 hotel, a convenient 부산광역 출장안마 casino 구리 출장안마 shuttle, and a fitness center. 구리 출장샵