WordPress, SEO, and Social Media Marketing

You are here: Home » Blog » CMS » WordPress » WordPress Bible » WordPress, SEO, and Social Media Marketing

WordPress, SEO, and Social Media Marketing

Title tag

Technically, the title tag is not a meta tag, but it ranks right up there in importance when it comes to SEO. Used in conjunction with the meta keywords and meta description tags, the title tag can provide additional bounce when it comes to search engine rankings. Many people assume that the title tag should be the title of the site and, therefore, many themes are coded with a title tag format similar to that shown below:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html>
 <head>
 <title><?php bloginfo(‘title’) ?></title>
 ...
 </head>
...
</html>

Instead, consider including your blog description in the title tag and prepending the description before the blog title. You can do this by editing the header of your blog (usually in header.php) as shown below:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html>
 <head>
 <title><?php bloginfo(‘description’) ?> - <?php bloginfo(‘title’) ?></title>
 ...
 </head>
...
</html>

This produces a title tag that reads along the lines of, “Your home for mobile gadgets on the Web – My Mobile Phone.” In this case, both the blog title, “My Mobile Phone,” and the blog description, “Your home for mobile phone gadgets on the Web” produce less than 160 combined characters, but some long titles and descriptions could end up cut off. By placing the description up-front, you ensure the chance for the search engine to get the most descriptive words indexed. You can even get fancy and replace the blog description with the title of a post on individual blog posts, as shown below:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html>
 <head>
 <title>
 <?php if( is_home() ) { ?>
 <?php bloginfo(‘description’) ?> - <?php bloginfo(‘title’) ?>
 <?php } else { ?>
 <?php the_title() ?> - <?php bloginfo(‘title’) ?>
 <?php } ?>
 </title>
 ...
 </head>
...
</html>

By |2019-02-08T19:21:58-04:00April 3rd, 2018|Categories: Computer Programming Languages, WordPress Bible|Tags: , , |

About the Author:

I am a loving father, & husband. I am a computer enthusiast. I have used and enjoyed computers since I was young and I enjoy teaching young minds how to code, because it teaches them how to think. Today with YouTube, and social media garbage our youth are losing the ability to think on their own and solve problems. I believe this is a serious epidemic as kids today dont understand that technology is a tool. This tool is being abused, and its underlying effects are taking its toll on kids behaviour, and learning.