Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-11-25 12:57:15

Tobias
New Member
From: Hamburg, Germany
Registered: 2014-06-18
Posts: 3
Website

Google Not Indexing (noindex) Article Pages

I was wondering why Google would not index the article pages and then I realised that there is a code that is telling Google to do that on those pages:

<meta name=“robots” content=“noindex, nofollow”>

I found this line from:

/textpattern/lib/txplib_head.php

and I changed it to:

<meta name=“robots” content=“index, follow” />

Which would change the nofollow to —> follow. But no index stays the same. How can I remove all “noindex” meta tags?

Thank you.

Offline

#2 2014-11-25 13:23:39

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Google Not Indexing (noindex) Article Pages

Hi there,

/textpattern/lib/txplib_head.php is PHP code for powering the Textpattern admin area (control panel), you shouldn’t be changing that at all – change it back unless you want to risk Google indexing your control panel pages.

If you are referring to the public-side theme, then click join the pages editor, select default page and make sure its robots code in the head matches this:

<txp:if_search>
<meta name="robots" content="none">
<txp:else />
<txp:if_category>
  <meta name="robots" content="noindex, follow, noodp, noydir">
<txp:else />
  <txp:if_author>
    <meta name="robots" content="noindex, follow, noodp, noydir">
  <txp:else />
    <meta name="robots" content="index, follow, noodp, noydir">
  </txp:if_author>
</txp:if_category>
</txp:if_search>

Then select the archive page and make sure its robots code matches this:

<meta name="robots" content="index, follow, noodp, noydir">

That should fix any problems you have. That’s how it’s done in the core theme files anyway.

Offline

#3 2014-11-25 14:19:43

Tobias
New Member
From: Hamburg, Germany
Registered: 2014-06-18
Posts: 3
Website

Re: Google Not Indexing (noindex) Article Pages

Alright. I got it working now! Thank you so much for your kind, prompt and thorough answer philwareham.

Last edited by Tobias (2014-11-25 14:20:03)

Offline

Board footer

Powered by FluxBB