How to Add Canonical Tag to Your Website?

Team TypeStack
Team TypeStack ...
Dec 01, 2022  . 3 min read
Table of Content

In this blog we will show you how to add canonical tags. Website canonical tag is the most important tag in search engine optimization. Canonical data is the basic part of search engine optimization. We will walk you through the process of adding canonical tags to WordPress and cPanel.

What is a canonical tag?

A canonical tag is an HTML element that helps you tell search engines which version of a piece of content is the original. For example, let's say you have an article that's been published on your blog, and then you republish it on a partner site. The canonical tag will help search engines understand that the version on your site is the original.

Adding canonical tags through WordPress

To implement canonical tags, open your WordPress dashboard. The first step is to

Install the Yoast plugin which is considered to be the best. If you create a new page

and blog in your WordPress use the Yoast plug-in to automatically generate a canonical tag for that respective page. To implement the canonical tag manually, go to the post, click on ‘All Posts,’ click ‘Edit’ on the post you want to create a canonical tag for. Scroll down and you will see the Yoast plug-in. Click ‘Advance’ and under ‘Canonical URL’ add the URL of the page and click ‘update’ on the top right corner. This way you can add canonical tags in WordPress.

Adding canonical tags in cPanel

cPanel is a web-based hosting control panel that makes it easy to manage your website. To add canonical tags through cPanel, go to cPanel, click on ‘File Manager. Next, select ‘Public HTML’ and then select the page where you want to add canonical tags. Then click ‘Edit’ and we will add the canonical tag in the header section. Open a blank by page or document and type the following

<link rel=”canonical” href=”URL of the page you want to create a canonical tag for”/>

Copy this code and put this code in the header section of your internal page. Next click ‘Save changes’. This way you can add a canonical tag.

The last step is to check if the canonical tag is properly implemented or not. To do this go to the website, and refresh your website and open view source and search for the canonical tag here. If you find your canonical tag in the source code, understand that it is implemented properly.

So you can easily add a canonical tag to your website.