Jump to content

Changing <meta name="robots" content="index,follow" />


mscat
 Share

Recommended Posts

Hi Friends,

I've been looking around for answer to this question but can't find any.

I've been trying to change
<meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />

to
<meta name="robots" content="noindex, nofollow">

on the themes/header.tpl file, but when uploaded, nothing happens.

Did I did it right, or do i missed something?

Please please help.. Thanks!

Share this post


Link to post
Share on other sites


I've been trying to change
<meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />

to
<meta name="robots" content="noindex, nofollow">


on the themes/header.tpl file, but when uploaded, nothing happens.

I can confirm that hardcoding it as
... content="noindex, nofollow" ...

works. Maybe a caching issue at either end. Try clearing your browser cache as well as cache files in /tools/smarty/cache/ folder. I would say "do not hardcode but change the existing line to:

... content="{if isset($nobots)}no{/if}index,{if isset($nobots)}no{/if}follow" ...

then set the nobots" however I cannot see where $nobots is set/setable.

Share this post


Link to post
Share on other sites

  • 4 months later...

I have the same problem.

I found $nobots and i can fint just this file:

Search "$nobots" (2 hits in 2 files)

...\www\prestashopita2\themes\prestashop\header.tpl (1 hits)
Line 13: <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />

...\www\prestashopita2\themes\prestashop\maintenance.tpl (1 hits)
Line 12: <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />

Share this post


Link to post
Share on other sites

  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More