Jump to content

Featured Replies

Posted

Hello,

How do I remove this code from search?

Could contain: Word, Text, Logo, Trademark, Symbol

  • Community Expert

Why would you want Google trying to cache random search queries?  There is no real “content” on those pages and causes your crawl budget to be spent on pages without real value.  You would be intentionally hurting your SEO. 

  • Author

I need to do some indexing tests based on */tags/*, so I need to remove this code to block other terms manually in robots.txt.

Edited by Hisashi

  • Community Expert

robots.txt is not controlling the code above.  It simply generates yourdomain.com/robots.txt

If you want to control the robots.txt directives....

ACP > System > Site Promotion > Search Engine Optimization

Click on Crawl Management and you can create your own robots.txt instead of using the one generated by IPS automatically.  

If you're trying to edit your raw HTML code on the page...  

ACP > Customization > Appearance > Themes.  

All HTML related related to IPB is found there.  You would just need to find specifically where that section of code is called from based on what page is generating it and edit it.  Given that it's a meta tag, I might begin by looking in the IncludeMeta spot, but it could be coming from somewhere else.  

This sort of change is not directly supported by IPS, so they're going to tell you this is outside of what they can provide support for.  

  • Author

It's not about robots.txt, I can adjust it easily.

What I'm not getting is to find this "noindex" code in search related templates.Could contain: Text, Menu

 

  • Community Expert
 

If you're trying to edit your raw HTML code on the page...  

ACP > Customization > Appearance > Themes.  

All HTML related related to IPB is found there.  You would just need to find specifically where that section of code is called from based on what page is generating it and edit it.  Given that it's a meta tag, I might begin by looking in the IncludeMeta spot, but it could be coming from somewhere else.  

🙂 

  • Author

I've done just that...

Could contain: Menu, Text

  • Community Expert

The master container is globalTemplate.  I would start there...  follow the other templates it refers to until you find what you're looking for.  

  • Community Expert

There is no built in way to achieve this, so have moved this to community support for further discussion 

  • Author

I thought it would be a simple thing

Season 3 Crying GIF

  • Community Expert

Yeah, that meta tag is set directly from the PHP backend:

\IPS\Output::i()->metaTags['robots'] = 'noindex'; // Tell search engines not to index search pages

It's easy enough making a plugin to remove it from specific pages though.

  • Author
 

Yeah, that meta tag is set directly from the PHP backend:

\IPS\Output::i()->metaTags['robots'] = 'noindex'; // Tell search engines not to index search pages

It's easy enough making a plugin to remove it from specific pages though.

What directory can I edit this file?

  • Community Expert
 

What directory can I edit this file?

There's a single instance of it on line 71 in \applications\core\modules\front\search\search.php.

You can't just comment out the line though, otherwise you'll remove the meta tag for ALL search pages, not just /tags/.

  • Author
 

There's a single instance of it on line 71 in \applications\core\modules\front\search\search.php.

You can't just comment out the line though, otherwise you'll remove the meta tag for ALL search pages, not just /tags/.

Thanks for observation.

Recently Browsing 0

  • No registered users viewing this page.