![]() ![]() Pages can include the Site Title because most page titles are short enough to fit them in without Google shortening the Meta Title. Your Site Title isn’t that important here. You’ll want your post's meta title to focus on the title of the page containing your primary keyword. Separator – Separator is a character that separates each variable.Primary Category – This will add the primary category of the specific post.Title – This will display the main title of your blog post.Site Title – This displays the name of your website.To set a default meta title, use the Yoast variables like you did with RankMath. Navigate to the Content Types tab under Search Appearance to see settings for posts, pages, and any custom post types you have. If you’re using the Yoast SEO plugin, here’s how you can set your default meta data across all your posts and pages. ![]() Save your post and view it to see the Meta Title appear in the browser tab.Īnd here it is in the code. You can set the title, description and different images, and see a preview for each. You’ll see custom settings for Facebook and Twitter. Then click on the Social tab to add different meta data for social media. You’ll see a preview of the search result snippet for desktop and mobile devices. Here’s how to add custom meta tags using RankMath.Įdit a post or page and click the button in the top right corner, then click Edit Snippet.Ī popup will show with all the custom meta tag settings.ĭelete the default variables and add your own catchy meta title and description. Try RankMath Pro Here RankMath Custom Meta Tags Per Post RankMath offers a lot of features in their free plugin, but if you want more, their premium plans start from $59 per year. You can set your Separator character under the Global Meta tab. Next, fill out the default tags for your pages and custom post types, if you have any.Ī good convention for pages is to include the Post Title and the Site Title, but essentially it’s up to you to experiment with: If you want to create a custom meta description, you can do this from inside each post or page. Google does a good job of auto-generating the meta description from the content on the page. When setting your default meta Description tag, you can either choose %excerpt% or leave it blank. RankMath has a ton of variables to use for your meta tags, but you’ll want to keep it as concise as possible for best results. You can see the different variables by clicking the dropdown arrow. Under the Single Post Type field, you will see the default values set by the plugin. RankMath and other SEO plugins use variable tags as placeholders, so each post and page follows the same naming convention. If you’re using the RankMath plugin, you’ll find default meta tag settings in the Posts tab under Titles & Meta. This is the way the major majority of people with WordPress sites add meta tags to their posts and pages. Here’s how you can add meta tags in WordPress with the most popular SEO plugins. 3 Best Plugins For Meta Tags In WordPress Really, this doesn’t give you much flexibility to set custom meta tags but is a completely hands-off approach. It will also use any post categories for meta keywords. ![]() The code above will use the first 160 characters of the post as the meta description. $meta = strip_shortcodes($post->post_content) Or, if you prefer, you can add code in WordPress with a plugin called Code Snippets.Įither copy and paste the following code at the end of your functions.php, which you can access through the file editor, or by using the Snippets plugin: post_content) You can do this by adding some custom code into your themes functions.php. Instead, the meta data will need to be automatically generated by terms such as the title, site name, and content on the page. Without a plugin, there’s no easy way to add custom meta tags to each post or page in WordPress.īecause pages and posts are stored in the database, there’s no static file for you to edit or add meta tags to. How to Add Meta Tags in WordPress Manually
0 Comments
Leave a Reply. |