Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #736596

    The site search link within the AJAX search function appears to be missing the rel=”nofollow” attribute. This is causing some crawlers and audit tools to over estimate the number of links on our site. Was this feature removed? I seem to remember this being there at version 2.4, but i don’t remember seeing anything about this in a changelog. Is there any way to hook into this function and add it back in? Thanks!

    #738158

    Hey gvadam!

    Thank you for using Enfold.

    Please ignore my previous post. That option will hide the whole site on search engines. You can add this hook in the functions.php file:

    add_action( 'wp_head', 'wp_head_mod_nofollow' );
    function wp_head_mod_nofollow() {
    	if(is_search()) {
    		echo '<meta name="robots" content="noindex,nofollow">';
    	}
    }
    

    Or install seo plugins such as Yoast.

    Regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.