Back to top

Affiliate Link: Looking to Monetize With Ads?? We Personally Use:

Ezoic

Remove Featured Snippets From Google SERPS

Featured Tiles
As an Amazon Associate we earn from qualifying purchases made on our website. If you make a purchase through links from this website, we may get a small share of the sale from Amazon and other similar affiliate programs. You can read our complete legal information for more details.

NOTE TESTING CURRENTLY – SHOULD WORK BUT UNPROVEN

Since Google has changed the Featured Snippet to be your only appearance for a single post or page instead of ranking possibly twice with the snippet and rank I assembled a code snippet to allow you to default list all posts and pages as no snippet or the opposite where you can list specific post id’s as not allowed for snippet use.

These require the use of the [ Code Snippets ] Plugin which allows you to execute code on post-loading, allowing for the meta to be injected into the post and for the robot to know it can’t utilize the content.

If you use caching plugins on the WordPress site or the server you will need to flush afterward so it pulls a new current version with the meta tag included.

Removing All Snippet Use

Create a new code snippet and paste in the following code below, set to run on front end only and you are good now with all posts and pages being listed to the robot to not use for a featured snippet.

/**
 * Append Meta To Remove From Featured Snippet Use.
 * Adds Code to Avoid Snippet To Each Page and Post Automatically
**/

function add_meta_remove_snippet() {
	if(is_page() ) || is_single() ){
	?>
    	<meta name="robots" content="nosnippet">
  	<?php
	}
}

add_action( 'wp_head', 'add_meta_remove_snippet' );

Removing Specific Snippet Use By Post ID

The below code allows you to append a page or post by id that you want to have set to nosnippet. This way you can specifically tag any post you DON’T want to get a featured snippet if you feel the number position would be more valuable.

/**
 * Append Meta To Remove From Featured Snippet Use.
 * Add Post or Page ID number for each post id 
 * Example: is_single( array( 1, 32, 44, 66, 99, 113) )
 * This means post ID 1, 32, 44, 66, 99 , and 113 won't get pulled for snippet use.
**/

function add_meta_remove_snippet() {
	if(is_page( array( 234, 'about-me', 'Contact' ) ) || is_single( array( 1774, 2, 3) ) ){
	?>
    	<meta name="robots" content="nosnippet">
  	<?php
	}
}

add_action( 'wp_head', 'add_meta_remove_snippet' );

If you find a post helpful and feel like rewarding my effort with the price of a beer, please donate here

About Josh Koop

Hey Everyone! I hope that the short article you read today has taken you from a place of frustration to a place of excited anticipation for your visitors! Please let me know of anything you need for Acabado that can help you achieve your goals!

My Posts | Website

Josh Koop

Hey Everyone! I hope that the short article you read today has taken you from a place of frustration to a place of excited anticipation for your visitors! Please let me know of anything you need for Acabado that can help you achieve your goals!

4 thoughts on “Remove Featured Snippets From Google SERPS

  1. Hello Josh,

    I cannot find a contact page for you. So I have to contact you here. I found your site by looking for Acadabo Support pages on Google. Could you please tell me how to turn on the publish date. I want it to display the date of Publishing on the front end of my posts. Could you help with that? Is there a shortcode?

    Thanks,
    Anne W.

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Content