Skip to main content

Make Prestashop dev sites noindex, nofollow

In Prestashop, we need to make a change to a template file to send out the 'no index, nofollow;' signal to robots.

Ideally, we will be using a child theme, as we will need to change a template file.

The 'head.tpl' file controls the header of the website.

Find it at public_html/themes/child_classic/templates/_partials/head.tpl

Find the SEO block at line 32

seo_block.jpeg

Add the following code under line 38.

<meta name="robots" content="noindex, nofollow">

Now the whole block will look like:

seo_block_revised.jpeg

 Robots are now blocked from the site.

You can test this by going to https://www.siteguru.co/free-seo-tools/noindex

Add the site URL and you'll be able to test if your change has been successful.

  • Hits: 15