Seo

Post Reply
kosi77
Sr. Bludit
Posts: 33
Joined: Wed Jan 30, 2019 7:23 am

How to place <meta name = "robots" content = "noindex, follow"> in categories and tag?

This should be done to avoid duplicating pages.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

At the moment this is not possible.

You can post a feature request at

https://github.com/bludit/bludit/issues
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
bayerberg
Master Bludit
Posts: 141
Joined: Wed Jun 07, 2017 1:05 pm
Location: London, UK
Has thanked: 7 times
Been thanked: 10 times
Contact:

if you modify head.php with something like

Code: Select all

if ($WHERE_AM_I == 'category') {
echo '<meta name = "robots" content = "noindex, follow">';
} 
it is possible. There should be a bit more logic to do it correctly though...
bludit plugins and themes - makeitblu | I do things, check them out on behance and dribbble.
kosi77
Sr. Bludit
Posts: 33
Joined: Wed Jan 30, 2019 7:23 am

I think this is better:

Code: Select all

<?php
if ($WHERE_AM_I == 'category') {
echo '<meta name = "robots" content = "noindex, noarchive">';
}
?>
<?php
if ($WHERE_AM_I == 'tag') {
echo '<meta name = "robots" content = "noindex, noarchive">';
}
?>
Post Reply