mscat Posted August 19, 2010 Posted August 19, 2010 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 More sharing options...
phrasespot Posted August 19, 2010 Posted August 19, 2010 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 More sharing options...
sirelancillotto Posted January 8, 2011 Posted January 8, 2011 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 More sharing options...
Mr S Posted November 24, 2011 Posted November 24, 2011 FYI: $smarty->assign(array('nobots' => true)); Share this post Link to post Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now