- This topic has 5 replies, 3 voices, and was last updated 6 years, 7 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
HI, I just ran a site:malleeblue.com in Google and noticed a lot of images with attachment URLS. For example, this one land you on a page with nothing but an image of a number - not exactly high quality content.
Is there a way in Genesis to prevent my images from being indexed by Google and displaying these attachment pages in the SERPS?
As a general rule, when inserting an image in to a post, I don't insert it as an attachment. I would like to get these pages out of Google.
Hi Victor. Thanks. I prefer not to use that plugin. If there are any other suggestions for doing this in Genesis I would be grateful.
Apart from using a plugin like Yoast, there is no easy way. Yoast redirects search engine bots back to the parent URL. An alternative is to add
<meta name="robots" content="noindex,nofollow" /> in the header of every single attachment page. You could probably write a PHP routine to do this and add it to your functions.php, but you wouldn't get the redirect back to the parent page. The last alternative is to maybe you can find another SEO plugin you'd be willing to work with.
Thanks Victor. I have decided to add an image.php file and send attachments back to the post. It seems to have worked. Will just need to see what Google does with them.
© 2022 WPEngine, Inc.