Which title and meta tags take priority?
-
I am basically trying to override the title and some of the meta tags for my website. Based on advice given in one of the forum topics, I have added the following code (sample data) to the header.php of my child theme:
Add_action(‘wp_head’, ‘your_seo_function’);
function your_seo_function() {
echo ‘<title>My desired page title</title>
<meta name=”keywords” content:=”one, two, three, etc.”/>
<meta name=”robots” content=”index,nofollow” />’;
}After doing so and loading up my site, when I right-click on the site and choose ‘View Page Source,’ I see my desired title and meta tags. However, the original title and meta tags are still present, higher up on the page. Which title and tags do the search engines recognize? In particular, the original “robots” meta tag is “noindex,follow” and I certainly don’t want the search engines to not index the page.
Here’s my site link: https://www.thechurchinchicago.org/.
Thank you!
- The topic ‘Which title and meta tags take priority?’ is closed to new replies.