- This topic has 8 replies, 2 voices, and was last updated 4 years, 10 months ago by Tom.
-
AuthorPosts
-
May 29, 2019 at 11:53 pm #915005gedosan
Hi Guys,
I’ve realised google is displaying a page on my site that shouldn’t be there. The problem is it isn’t even a ‘real’ page on my site. I’ve tried submitting it to google’s removal tool, but they only remove pages that have had ‘no follow’ added to them. As its not a real page, I can’t go to Yoast to add ‘no follow’ to it.
To me it looks like a system page that’s been automatically generated, like a category page but for ‘all pages’.
Any ideas how I can remove it please?
Cheers
GMay 30, 2019 at 8:12 am #915435TomLead DeveloperLead DeveloperHi there,
/pages
is the site? It looks like it’s set as your blog page. What page do you have set as the posts page in “Settings > Reading”?May 30, 2019 at 11:34 am #915623gedosanHey Tom,
Just looked and actually I haven’t selected anything for the posts page. It could be that then. Weird thing is I have another site using GP and haven’t selected any page for that, but not getting the /pages/ page.
I’ll give it a whirl.
G
May 30, 2019 at 11:48 am #915638gedosanI created a new page and called it ‘/all-posts/’, then set it as the posts page. However, the /pages/ page is still there, and interestingly the title tag says ‘all-posts’. Now, I’m properly confused.
Any ideas?
May 30, 2019 at 1:00 pm #915699TomLead DeveloperLead DeveloperHmm, strange indeed. Any custom functions added to the site? Have you tried deactivating plugins to see if one of them is creating that permalink?
May 30, 2019 at 1:12 pm #915715gedosanFunctions (using Snippets plug in)
—
Featured Image:
add_shortcode(‘featured_img’, ‘fi_in_content’);
function fi_in_content($atts) {
global $post;
return get_the_post_thumbnail($post->ID);
}—-
Remove link from date:
add_filter( ‘generate_post_date_output’,’tu_remove_date_link’, 10, 2 );
function tu_remove_date_link( $output, $time_string ) {
printf( ‘<span class=”posted-on”>%s</span>’,
$time_string
);
}—-
Disable GP Schema:
add_filter( ‘generate_schema_type’, ‘__return_false’ );
—-
none of those are the culprit right?
G
May 30, 2019 at 3:29 pm #915799TomLead DeveloperLead DeveloperNope, none of those would do it. Have you tested your plugins?
You could always set up a 301 redirect on your server from that URL to the correct URL, but it is strange that the URL is working in the first place. Perhaps there’s something on your server causing it?
May 31, 2019 at 12:28 am #915995gedosanTried a few plug-ins but no none of them removed it. I’ve come up with a solution to remove it from google at least – I created a page called /pages/ (it let me) and set that to nofollow, then googles removal tool let me remove it. That will do for now!
Thanks for the help
May 31, 2019 at 6:49 am #916309TomLead DeveloperLead DeveloperNo problem – sorry we couldn’t figure it out.
-
AuthorPosts
- You must be logged in to reply to this topic.