I’m using XAMPP test server so I am not able to send you a link.
I found another thread in the forum that suggested to use the “Yoast WordPress SEO” plugin and that did the trick.
Thanks guys.
Thank you so much Devin, I got it working. Now I have a double space instead of triple space after the pipe “|”.
I changed $title = get_bloginfo('name').' | ';
to $title = get_bloginfo('name').' |';
to get rid of one of the spaces after the pipe “|”.
But I think the ‘description’ is adding the unwanted double space. How would I go about removing these spaces?