How Do I Add Meta Title and Meta Description in WordPress?

Adding meta titles and meta descriptions in WordPress can help improve your website’s search engine optimization (SEO). Titles and descriptions are hidden from users, but search engines can use them to help improve your website’s ranking.

Titles and descriptions should be short and to the point, and they should be relevant to the content on your website.

To add meta titles and meta descriptions in WordPress, first create a file called wp-config.php and add the following lines:

define(‘META_TITLE’, ‘Your WordPress Site Title’);
define(‘META_DESCRIPTION’, ‘Your WordPress Site Description’);

Next, create a file called wp-content/themes/yourtheme/index.php and add the following lines:

Finally, add the following line to your theme’s functions.php file:

wp_title()->meta_title(‘Your Theme Title’);
wp_title()->meta_description(‘Your Theme Description’);

When you’re finished, your website should look like this:

.