Error on line 7 at column 6: XML declaration allowed only at the start of the document

If you run WP website and installed whatever plugin which should make sitemap.xml for WP (Yoast, All in one SEO, Google sitemaps, …) sometimes you might bump on this error message when trying to open and see your sitemap:

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

You might loose much time searching for incorrect php file in your theme, plugins or core WP files.

Continue reading Error on line 7 at column 6: XML declaration allowed only at the start of the document

Variation SKU must be unique – Invalid or duplicated SKU

If you use WordPress and Woocommerce, you might bump on this problem. SKU (Stock Keeping Unit) is a unique product code. Uniqueness is not optional by default, if have to be unique.

Let’s say you are selling t-shirts and you have colors as variations, so blue and green t-shirt are just 2 variations of exact the same product. In Woocommerce you will have to place different SKU for that two variations.

But what is you want to have exact same SKU for two variations. Or even for two different products. We don’t want to question your reasons for that.

Here is a nice free WP plugin you might use for that. “Neparno 10” developed it and placed on their website. Plugin is called “Disable unique SKU“. You will just need to upload it to /plugins folder and activate it. After that, you will be able to enter exact same SKU for different products and variations.

Strikethrough over price in WPBakery page builder

WPBakery page builder is quite popular for editing wordpress websites. You can use elements and design pages and posts easier with just a bit or even without knowing to code. But here is situation I found myself in recently while I was editing one client’s website.

They used “Price” element on pricing page. It all worked well untill they wanted to place old price with strigethrough line over, and new price next to it. The “price” element just don’t have that function. So I figured out small trick for it.

Continue reading Strikethrough over price in WPBakery page builder

Change site URL in MySQL PHPmyadmin

If you have WordPress website that used all absolute URL’s instead of relive ones, and you want to change all in MySQL, here is the way how you can do that in PHPmyadmin. It will be a bit complicated search and replace procedure.

First go to Search tab, enter your old URL, select all tables in “Inside tables” and click “Go”.

search mysql in phpmyadmin Continue reading Change site URL in MySQL PHPmyadmin