Hi,
i would like to know how i can set noindex on privacy policy and Terms and Condition.
Thanks,
roy
Assuming you have a default installation, the following should do it:
backup the following files first
edit: catalog/view/theme/default/template/common/header.tpl
find:
add before
edit: catalog/controller/common/header.php
find:
add before:
backup the following files first
edit: catalog/view/theme/default/template/common/header.tpl
find:
Code: Select all
<?php if ($keywords) { ?>
Code: Select all
<?php if($info_id == '3' || $info_id == '5'){ ?>
<meta name="robots" content="noindex" />
<?php } ?>
find:
Code: Select all
$data['keywords'] = $this->document->getKeywords();
Code: Select all
$data['info_id'] = (isset($this->request->get['information_id']) ? $this->request->get['information_id'] : 0);
Who is online
Users browsing this forum: No registered users and 11 guests