Friday 28 April 2017

Drupal 8 Metatag

To make website popular and to increase the SEO of website, Metatag play the very important in it.
In D7 it installation is very easy.We just have to install module and have to configure as per our requirement.
If you have remember, in D7 when we install the module and after configuration it is created a field for entity types and because of that field we were able to set metatag for each entity.

Step to set up metatag in D8

  1. Install the module.
  2. You can setup common metatag for site by visiting this url (admin/config/search/metatag).
  3. If you want to add different metatag for each node or term than create a field of type metatag in any content type or in entity type for which you want to setup.
  4. Now create a node and on node edit page you can see metatag tab,  in which you can add metatag for your single node ot you can use tokens.
  5. Now your metatag is ready for that entity type.
  6. If you created field in one content type then you only able to setup metatag for that entity type entities only.
  7. In D8, You can't reuse of field of one entity type to another entity type.So for each entity you have to create different field of metatag type.
So by following above steps you can easily setup metatags for your site.

No comments:

Post a Comment

Thanks!