Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #507803

    Hello,
    How to add meta robots with ‘noindex, follow’ to search results?
    Thank You
    Piotr

    #507809

    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

    #507837

    WOW!
    Thank You for extremly fast response :)
    Regards
    Piotr

    #507854

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to add meta robots with ‘noindex, follow’ to search results?’ is closed to new replies.