Jump to content

Add noindex nofollow in cms pages {1.4}


Recommended Posts

Hi all

Just tried of trying to add <meta name="robots" content="noindex, nofollow" /> in certain cms pages. 

I did add all these codes in header .tpl but none of these worked.

 

"{if $page_name=='cms.php?id_cms=12'}
<meta name="robots" content="noindex, nofollow" />
{else}
<meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />

{/if} "

 

{if $page_name=='/content/12-links"}
<meta name="robots" content="noindex, nofollow" />
{else}
<meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />
{/if}
 
{if $page_name=='links"}
<meta name="robots" content="noindex, nofollow" />
{else}
<meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />
{/if}
 
 
{if $_SERVER['REQUEST_URI']=='/content/12-links'}
<meta name="robots" content="noindex, nofollow" />
{else}
<meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />
{/if}
 
This post is solved but the solutions are not working.
 
My store  version 1.4.7.3
 
prestashop really need to put these kinds of basic features and yet these features are still not available in 1.5 and also in 1.6 i guess.
 
 
 

 

Link to comment
Share on other sites

  • 5 months later...

hi ,
how can i add no index no follow in particular CMS page Like {* /content/9-featured-products-blog *} and particular CATEGORY page Like {* /30-testing*} In PrestaShop V. 1.5.6
Please Help
thank you

Link to comment
Share on other sites

×
×
  • Create New...