Hello,
How to add meta robots with ‘noindex, follow’ to search results?
Thank You
Piotr
Hi pedronx!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_set_follow','avia_set_nofollow');
function avia_set_nofollow(){
if ( is_search() ) {
$meta = '<meta name="robots" content="noindex, follow" />' . "\n";
}
return $meta;
}
Regards,
Yigit
WOW!
Thank You for extremly fast response :)
Regards
Piotr
Hi!
You are welcome, we are always happy to help!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
Regards,
Yigit