![]() Go ahead and open the wp-content/themes//functions.php file and add the following snippet at the end. What are the most important META TAGS for a website Some META TAGs help a website appear as a relevant result in Google results pages. So META TAGS are pieces of information about specific fields in the source code of a page, that might be of interest for users and SEO alike. So, meta tags are the HTML tags, which provide information. META signifies information about information. In this example, I’ll show you the code for a Twenty Twenty child theme. The meta tag represents the Meta-data as well as provides information about the HTML document. You can learn how to create a child theme here: However, if you’re using a third-party theme like Twenty Twenty, you should create a child theme before you make any changes. If you’re using your own custom theme, you can edit the functions.php file directly. To enable meta tags support, we’ll have to add a code snippet in the functions.php file of your active theme. In this section, we’ll discuss how you could enable meta tags support in your WordPress website without any plugins. Look for header.php and click on it to open the file. You want to locate the Theme Header file and open that up. How to Add Meta Tags to WordPress Without a Plugin From your WordPress admin dashboard click on Appearance > Theme Editor. In this article, we’ll discuss both ways. Broadly speaking, when it comes to providing meta tags support in WordPress, there are two ways: either you need to edit the WordPress code files or you need to install a third-party plugin. It comes with both free and premium versions. All In One SEO Pack is also another popular tool to add meta tags in WordPress websites. WordPress doesn’t come with built-in support for meta tags, and thus, you need to do a bit of extra work if you want to take advantage of meta tags. All In One SEO Pack: A Popular WordPress SEO Tool. There are certain keyword meta tags that don’t contribute to search engine ranking of your website, although some meta tags like meta description can significantly improve search results. In fact, meta tags allow us to inform crawlers about the specifics of the web pages. ![]() ![]() Go through the theme documentation, Every theme has a plugin to change the description. Do check the SEO dashboard, Where you can change the description for each pages. So if you want to only call it content-share.php you need some conditioning logic like. To add different description Meta tags Without using plugin you could create Custom fields in Wordpress and then call them in your header.php file. And it adds it then everywhere where you have wphead (). When search engine crawlers visit your website, they fetch metadata information in the form of meta tags in addition to fetching actual content of that page. I think you need to do the addaction ( wphead, addmetatags, 10 ) in your functions.php instead of the template to get the function called. Meta tags are important when it comes to making your website SEO-friendly. By default, WordPress doesn’t support meta tags, but with a few easy steps you can add support for meta tags in your WordPress website. In this tutorial, I’ll show you how to add meta tags to your WordPress website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |