Remove Date From Search Engine Result
-
I installed plugin to hide date from search engine result. The date on web page is hidden.
But the date (even after more than 2 weeks) on search engine result still appear and not hidden like on my web page.
I uninstalled the plugin and switch to another date removal plugin but the date on searche engine result still appear.
Then I try to add this code to function.php
<?php function jl_remove_post_dates() { add_filter ('the_date', '__return_false'); add_filter ('the_time', '__return_false'); add_filter ('get_the_date', '__return_false'); add_filter ('get_the_time', '__return_false'); } add_action('loop_start', 'jl_remove_post_dates'); function my_theme_enqueue_styles() { $parent_style = 'parent_style'; // this is 'annina-style' for the Annina theme. wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css'); wp_enqueue_style( 'child_style', gey_stylesheet_directory_uri() . '/style.css', array( $parent_style), wp_get_theme()->('version') ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
But the code above doesn’t work.
I use Annina theme (and child theme too).
Can you suggest me some code or plugin to hide date from search engine result?
- The topic ‘Remove Date From Search Engine Result’ is closed to new replies.