Jump to content
Sign in to follow this  
mscat

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

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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