banner



how to add meta tags in wordpress without plugin

I optimize some of my WordPress sites without an SEO plugin because often, they simply have more features than I need for certain projects.

In this column, you'll learn how to do WordPress SEO without an SEO plugin.

This is not intended to persuade you to not use one, but to show you how to take full control of your SEO without a plugin if you so choose.

SEO Plugins Are Useful

SEO plugins are recommended solutions for publishers who cannot code PHP, who are lost with HTACCESS files, and for those to whom robots.txt files are a mystery.

The technical side of SEO has a relatively high bar in terms of coding. SEO plugins democratize web publishing.

A major complaint about SEO plugins is how bloated with unnecessary features they are. But this isn't the case across the board.

There are SEO Plugins that are lean and fast as well as modular, so you can choose which SEO features you need.

Advertisement

Continue Reading Below

An example of this kind of SEO plugin is The SEO Framework. It's an excellent choice for those who want more control over their SEO but prefer to pick and choose the features they need.

SEO plugins are the safe choice for publishers who are risk-averse and don't want to experiment with alternatives. A lot is at stake, so the best choice is often the most trusted solution.

Why I Don't Use SEO Plugins

This year, because of the headaches caused by an SEO plugin bug, I launched a site without any SEO plugins. I was happy with my results and transitioned other sites away from SEO plugins.

I moved away from a single SEO plugin simply because it seemed I could control a website's SEO better.

It was a round trip journey back to where I had started with WordPress — optimizing WordPress without a dedicated SEO plugin.

Reasons I Do Not Use an SEO Plugin

There are four reasons why I don't use an SEO plugin:

Advertisement

Continue Reading Below

  1. Features that duplicate what's already in WordPress or in a theme.
  2. Unnecessary features that solve presumed problems.
  3. The complexity of SEO plugins can introduce numerous bugs and conflicts with other plugins.
  4. Greater control over SEO.

Reasons Why I Prefer Standalone Solutions

  1. Easier to code a solution that handles one problem.
  2. Some SEO features don't need a plugin.
  3. Standalone solutions are easier to maintain.
  4. Leaner WordPress installation without unnecessary features.

SEO Features You Need for WordPress

WordPress has a fairly robust core nowadays. Things like canonicals are done automatically.

Many WordPress themes contain SEO features like schema markup, breadcrumb navigation, Open Graph meta data, and so on.

While your exact needs will vary according to the template you use, here are a few things to look for.

Necessary WordPress SEO Features

  • Breadcrumbs with Schema.org Structured Data.
  • Meta descriptions.
  • Open Graph meta data.
  • Removal of category base.
  • Schema metadata.
  • A way to easily add the nofollow attribute to selected links.

WordPress Plugins for SEO

  • Breadcrumb NavXT.
  • Easy WP Meta Description.
  • Open Graph for Facebook and Twitter Card Tags.
  • Remove Category from URL.
  • Schema WordPress Plugin.
  • Ultimate Nofollow WordPress Plugin.

Optional WordPress SEO Features

  • Attachment Pages Redirect.
  • Redirection WordPress Redirect Plugin – Over 1 million installations.
  • XML Site Map – Over 2 million installations.

Breadcrumbs

Breadcrumbs is a useful feature.

Adding Schema structured data to it will get you enhanced listings if you rank in the SERPs. And the enhanced listings may help the click-through rate.

It's possible to code breadcrumb navigation without a plugin. The code is supposed to go into your website's "child" functions.php file.

Most tutorials say to add it to your theme's function.php file but you'll lose your breadcrumbs if the theme is updated and the functions.php file is part of that update.

Advertisement

Continue Reading Below

Getting breadcrumbs right can also become complicated because you still need to associate schema markup with the breadcrumbs. So that's even more coding.

It can be done but at this point, it might be easier to offload the responsibility of making sure it works to a plugin.

I have found that using BreadCrumbs NavXT WordPress Plugin is an adequate solution. It handles the breadcrumbs and the schema data.

The NavXT plugin was the subject of a medium-level vulnerability but it was quickly patched. This was unusual for this plugin and unlike more serious events associated with dedicated SEO plugins, it did not cause problems for users.

Meta Description

I have found Easy WP Meta Description an adequate solution for meta descriptions. Meta descriptions aren't a ranking factor but they do show in the SERPs if you rank.

Google will rewrite your meta description if a phrase from your web page is a better match. With that said, Google does a fine job of providing a relevant snippet from your page.

Advertisement

Continue Reading Below

So it's up to you. You can add your own meta description or let Google tell the user why your site is relevant to the query.

Title Tag

I craft an article title that is adequate to use as a title tag. If it's good enough to serve as the title of the article, it should be good enough as the title of the web page. There are workarounds for coding this into the theme as well as plugins but I think those are superfluous.

Open Graph Meta Data

Strictly speaking, this isn't an SEO feature but could influence how much traffic goes to your site. It allows you to specify an image and wording to show when your URL is shared on Facebook and Twitter.

Open Graph Meta Data plugin helps you present a professional appearance that will appeal to potential site visitors.

Remove Category Base from WordPress

The word "category" isn't necessary for your URL structure. Shortening your URL to the domain name, the actual name of the category, and the page name is a best practice.

Advertisement

Continue Reading Below

A shorter URL is easier to remember, less likely to be mistyped, and can tell users and search engines what the page is about using the least amount of words. Read more about the Remove Category Base plugin here.

WordPress Plugin for Schema Structured Data

The Schema WordPress plugin will integrate most Schema structured data you'll need, including reviews and article schema.

Schema markup can be coded by hand, as well. For example, you can take the JSON-LD script for reviews and paste it into the bottom of your review directly into the WordPress editor while in Text Mode.

Then, manually adjust the descriptive fields for rating, product name, etc.

JSON-LD review template with author:

<script type="application/ld+json">  {  "@context": "http://schema.org/",  "@type": "Review",  "itemReviewed": {  "@type": "Thing",  "name": "NAME OF PRODUCT"  },  "author": {  "@type": "Person",  "name": "NAME OF REVIEWER"  },  "reviewRating": {  "@type": "Rating",  "ratingValue": "ENTER THE RATING EXPRESSED AS A NUMBER",  "bestRating": "ENTER A NUMBER THAT REPRESENTS WHAT THE TOP SCORE IS, LIKE 5 OR 10"  },  "publisher": {  "@type": "Organization",  "name": "NAME OF YOUR PUBLICATION"  }  }  </script>

Pretty much every element of structured data can be handcrafted and manually or even automatically inserted on a post-by-post basis, or by editing your template directly.

You don't have to use a plugin. But the plugin is clearly the best way to scale this process and have it up to date no matter how often WordPress updates.

Advertisement

Continue Reading Below

Ultimate Nofollow Plugin

The Ultimate Nofollow plugin adds the option to make a specific URL nofollow at the moment you are creating that URL. There are additional options for sitewide nofollows, should you need those. But I don't use them.

Optional SEO Features for WordPress

Attachment Pages Redirect

If you have inadvertently created web pages for every image attachment in your WordPress site, this plugin will easily solve your problem.

The Attachment Pages Redirect plugin will restore your individual attachments to their correct behavior. Just install and activate it and that's it, your problem is solved.

The Attachment Pages Redirect plugin needs no setting up. Just activate it and forget it. Fixing rogue attachment pages couldn't be easier.

Just make sure to use the correct setting for redirecting attachments to the post when uploading media in the future.

Redirect manager

This is a useful plugin if you feel uncomfortable editing htaccess files to create redirects. Use this if you have a legitimate reason to redirect an old page to a new page.

Advertisement

Continue Reading Below

404 Responses Are Not Unhealthy

Don't use a redirect manager to redirect a deleted page to the home page.

Some SEO plugins try to scare you into believing that 404 error codes affect the "health" of your site. But that is incorrect. 404 response codes are not inherently harmful to the "health" of your site.

  • Some 404 responses are due to spammers linking to your site with a partial URL. That's normal and nothing to worry about. The 404 response is the perfect response.
  • Some 404 responses are due to an internal linking error by the publisher. That's your error (you mistyped the URL). That's something to fix by updating the URL to the correct URL.

The truth about 404 response codes is that t hey are perfectly natural and do not make your website less healthy.

Google's John Mueller states that 404 response codes are not something that needs fixing. He also states that 404 response codes are natural:

"There's no need to "fix" crawl errors on your website. Finding 404's is normal and expected of a healthy, well-configured website.

If you have an equivalent new URL, then redirecting to it is a good practice. Otherwise, you should not create fake content, you should not redirect to your homepage, you shouldn't robots.txt disallow those URLs — all of these things make it harder for us to recognize your site's structure and process it properly. We call these "soft 404" errors."

WordPress SEO Without an SEO Plugin

Here is more information from Google about 404 response codes.

Advertisement

Continue Reading Below

XML Site Map

Google uses site feeds to crawl a website. If you add a page, Google can find your feed and discover it in that manner.

That's why I list XML site map as an optional solution. Here's what Google's developer page says:

"Use Pubsubhubbub if you use Atom/RSS for your sitemap and want to broadcast your changes to other search engines in addition to Google."

Google can also discover the web page through the normal process of crawling from link to link.

Another option is that you can choose to submit the URL individually or through a site map; see complete instructions from Google here.

If your site is not updated often, you can crawl it with an app like Xenu Link Sleuth and choose the option to create an XML site map. Then you just upload it to your server. No web hosting resources are needed to generate the map other than allowing Link Sleuth to crawl your website.

Advertisement

Continue Reading Below

Or, you can use a plugin like the Google XML Sitemap Generator plugin.

Redundant SEO Plugin Features

You may find features included in SEO plugins that are redundant or not necessary.

Canonical URLs

Canonical URLs are built into WordPress. You don't need an SEO plugin to handle this.

Robots.txt and htaccess File Editors

If you have a text editor or an HTML editor, then you have all you need for editing a robots.txt file or updating an htaccess file. Additionally, you should only mess with those files if you know what you're doing.

If you are skilled enough to edit these, then you don't need a WordPress plugin to handle this. Just open your text file and an FTP app like a normal person, right?

404 Status Code Redirection

SEO plugins provide this under the mistaken belief that 404 status codes are harmful. As noted above by Google's John Mueller, 404 response codes are fine. Just fix the ones that are due to actual errors, like a typo in the URL.

Advertisement

Continue Reading Below

Sitemap Generators

As noted above, a site map is not strictly necessary because Google crawls URLs via RSS feeds and links.

However, a site map is useful if you have made major changes and want Google to discover them as fast as possible. In this case, a manually generated site map is useful, as you don't have to install a plugin to generate it.

You can still install a site map generator plugin and that makes far more sense to do than installing a huge SEO plugin to do this one single task.

Keyword Research and Word Processing

WordPress and your server resources might not be the best platform for conducting keyword and word processing functions. If you want a real-world app for checking your content, use a real software program like the Hemingway App. If you want to do web page analysis use a real app that generates a word cloud.

All of these kinds of functions are limited on an SEO plugin anyway. A standalone app will do a better job.

Advertisement

Continue Reading Below

Why Use Six Plugins Instead of One?

An all-in-one SEO plugin might be just a single plugin, but it's still behaving as if it's ten or more plugins.

Count the features on your SEO plugin and count each one as a single plugin. You'll be surprised that you could be larding up your WordPress site with the features of twelve plugins – features that you may not need.

So the question shouldn't be about whether you need six plugins versus one. The question should be how many features do you need?

For me, the clear answer is a lot fewer features that are offered by all-in-one WordPress SEO plugin solutions.

All in One is Not the Same as All You Need

As you can see, SEO plugins are useful for users who have little to no skill with coding or WordPress. SEO plugins accomplish an important task for users who don't have the skills to choose what solutions they need.

Advertisement

Continue Reading Below

A dedicated SEO plugin is a good choice for a large organization that wants to play it safe and not have to deal with individual plugins or handcrafted solutions.

However, for those with more skill or who aren't constrained by bureaucratic constraints, SEO plugins can be overkill.

People are installing SEO plugins by default, essentially sleepwalking through their WordPress SEO.

This article shows that you don't need everything a dedicated SEO plugin offers.

There are alternatives to installing an SEO plugin with features you don't really need. An all-in-one solution may not be what you need.WordPress SEO Without an SEO Plugin

how to add meta tags in wordpress without plugin

Source: https://www.searchenginejournal.com/wordpress-seo/wordpress-seo-without-plugin/

Posted by: rochaunpleted1961.blogspot.com

0 Response to "how to add meta tags in wordpress without plugin"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel