Hide from index

Posted in: Newspaper
Post count: 224

Hi!
I’d like to hide from index the text of exerpt on category, coz it makes double content for search engines. I need to add the tag <noindex></noindex>.
I use td_module8 and in this file i added this tag, but it’s never showed up in my sourse.
I did like this
<noindex><p><div class=”td-post-text-excerpt”><?php echo $this->get_excerpt(td_util::get_option(‘tds_mod8_content_excerpt’));?></div></p></noindex>

Was it wrong? How can i add this tag?

Post count: 224

I meant this tag <!–noindex–><!–/noindex–>

Post count: 6600

Hi,

It dose not show in your source because the <!–noindex–><!–/noindex–> is not a valid html tag. You could try this plugin for this https://wordpress.org/plugins/noindex-links/
Note that I haven’t made any tests with this and can’t guarantee it will work.

Thanks

Post count: 224

As far as i know this one <noindex></noindex> is not valid, but this one <!–-noindex-–><!–-/noindex-–> is valid, coz it’s like regular comment in code..
Also i use this code hiding widget text and everything works
http://rusfolder.com/41866256
http://rusfolder.com/41866257

But for categories i only can see the code in Notepad++ http://rusfolder.com/41866362

Post count: 1291

Hi,

You cannot easily hide content from google, here is a good answer on the same topic – http://webmasters.stackexchange.com/questions/54735/can-you-use-googleon-and-googleoff-comments-to-prevent-googlebot-from-indexing-p

Thank you, Emil G.

Post count: 224

Hi!
Yes, i know it about Google, i want to hide the content from a local search engine of my country (very big here) and this tag works for them

Post count: 6600

Hi,

You can use the <noindex> tag as it is for your country seems like it’s valid, or you can use it like this <!--/noindex--> to be appear in your source code also.
You can read more about how this tag works here
I have tested this on module 8 and it worked, make sure you do the same in your case:
ex:
* http://screencast.com/t/pdh4VeAhDY
* http://screencast.com/t/cGsP97lC4
* http://screencast.com/t/YsubkVb1n1

Thanks

Post count: 224

Finally it works now, thank you! I put this tag to the main theme, not child one, and now it is in my source

Could you tell me how can i edit some links in my footer, i’m using widget widget_pages and i’d like to add rel=”nofollow” for some of them. In which file i can do it?

Post count: 6600

Hi,

That is an WordPress widget, try to search and find a way to do it online or you could also use a plugin for that.

Thanks for the message!

Post count: 224

Got it, thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.