• Resolved emos123

    (@emos123)


    Hello
    1. Is there any quick way to add noindex for each category and tags? I have a page with over 3k tags and it will take a long time to manually click each one individually. The option to disable all in the plug at once would be nice.

    2. I want only the homepage to be index but all subsequent pages to be noindex (page/2, 3 etc).

    3. How do I change the Default “Home” label in breadcrumbs to something else?

Viewing 1 replies (of 1 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi,

    1. Is there any quick way to add noindex for each category and tags? I have a page with over 3k tags and it will take a long time to manually click each one individually. The option to disable all in the plug at once would be nice.

    2. I want only the homepage to be index but all subsequent pages to be noindex (page/2, 3 etc).

    Please use the following snippet (you can add to your functions.php file or using the Code Snippets plugin):

    add_filter( 'slim_seo_robots_index', function ( $is_indexed ) {
    	if ( is_category() || is_tag() ) {
    		return false;
    	}
    	
    	if ( is_home() && is_paged() ) {
    		return false;
    	}
    	
    	return $is_indexed;
    } );

    3. How do I change the Default “Home” label in breadcrumbs to something else?

    The breadcrumbs short code has an attribute “label_home” which you can use to change the “Home” text to something else.

Viewing 1 replies (of 1 total)
  • The topic ‘Noindex for each category and tag’ is closed to new replies.