Add social media meta tags wordpress7/14/2023 ![]() The plugin checks the meta description length and whether you’ve used your focus keyphrase. We’re going to use the more advanced, All In One SEO Pack plugin to get this job done. The most popular SEO plugin, Yoast SEO, no longer support the meta keywords feature. But Yoast SEO also gives you feedback on it in the SEO analysis. The easiest way to add meta keywords and descriptions for your pages and blog posts in WordPress is to use a plugin. Firstly, you can write it in the Google preview section of Yoast SEO. The general settings page is where you can add tags that appear on various areas of your site, such as your front page, archive pages, category/taxonomy pages, etc. Adding a meta description is easy if you’re on WordPress or Shopify and using Yoast SEO. The Essential Meta Tags for Social Media while the bottom part will show as the website. Note that it uses /img/opengraph_image.jpg for non-article pages, so you will need to put something there. You can manage your meta tags in two areas of your WordPress dashboard. After clicking on the Edit button, the post editor will open. Here, select the post and click on the Edit button (as shown in the image). $excerpt = str_replace("", "'", $excerpt) Īdd_action ( 'wp_head', 'fb_opengraph', 5 ) Įssentially, this checks if the page is a single post or a main page, and configures the description and image accordingly. To begin, first, log in to your WordPress dashboard and go to Posts > All Posts. $excerpt = strip_tags($post->post_excerpt) OG tags, are used to display content as a preview card in Facebook, Twitter, Pinterest, and etc. The best way to add meta tags in WordPress is with a plugin, as Ive shown you how to do this in the article, step by step. ![]() $img_src = get_stylesheet_directory_uri(). 1) Add Meta Tags with a Plugin The easiest way to add meta tags in WordPress is to use a plugin. $img_src = wp_get_attachment_image_src(get_post_thumbnail_id( $post->ID ), 'medium')
0 Comments
Leave a Reply. |