I’m looking for a way to insert meta tags such as ‘keywords’ and ‘robots’. I don’t want a plugin such as Yost since I’ve read too much about site corruption, etc, and this should be such a simple thing to do. Maybe there is an include file that I can edit? Maybe a common one and also one for each page?
Sorry if this has been covered somewhere else, but I can’t seem to find it.
If you’re using our BB theme, you can manually insert meta tags within the <head> section. To do that, navigate to Appearance > Customize > Code > Head Code. Check out the link below for more information regarding Meta Tags in WordPress. Let us know how it goes.
You’ll need to edit the header.php file of the theme since the meta tags are placed inside the header. Or you could hook to the wp_head action as well. Either way works fine.
To add it on a per page basis, you can use the conditional tag is_page().