Post by roytyo » Thu Oct 23, 2014 3:21 am

Hi,

i would like to know how i can set noindex on privacy policy and Terms and Condition.

Thanks,

roy

Newbie

Posts

Joined
Thu Apr 25, 2013 7:35 pm

Post by uksitebuilder » Thu Oct 23, 2014 4:16 am

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:

Code: Select all

    <?php if ($keywords) { ?>
add before

Code: Select all

<?php if($info_id == '3' || $info_id == '5'){ ?>
<meta name="robots" content="noindex" />
<?php } ?>
edit: catalog/controller/common/header.php

find:

Code: Select all

		$data['keywords'] = $this->document->getKeywords();
add before:

Code: Select all

		$data['info_id'] = (isset($this->request->get['information_id']) ? $this->request->get['information_id'] : 0);

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 11 guests