Site logo

Archived topic

Setting image attachment link to "none"

5 replies · Started by Anton on August 29, 2019

Viewing posts 1–6 of 6

Hi there,

I moved theme to GP last week and noticed today that some images on my site are linking to an image file, where on my old theme they were linking back to the post. I've tried setting 'none' in wp-admin/options.php, and this worked with my old theme but doesn't seem to work with GP.

I've also set images to redirect to the post in All in One SEO, but going through the site, I see that some images are opening as links, others redirect to the post and others aren't clickable at all!

This seems like it's a WP-setting rather than a theme-related issue, but not sure. Any ideas on how to set all existing images to 'none'? All new images are fine as the default is now set to 'none'.

Thanks

Hi Leo,

Yep, I know about the setting and I have it set to 'None' for all new images I add :)

What I mean is I am looking for a way to set all images on the site to 'None', without having to do so individually? With my old theme the wp-options setting seemed to do this, but with the move to GP it looks to have reset, where some images link to the file and others don't.

GP shouldn't interfere with the WP options settings.

Does it work as expected if you switch to a default WP twenty series themes?

Yeah that's why it seems strange. I haven't tried it with a default theme. With the current site that'd involve a bit of work - I'd need to move to a test server, etc.

On another site I have with GP, the images aren't even clickable.

I believe the image_default_link_type setting doesn't actually change the existing images, only new images.

Definitely worth switching to a default WP theme to test quickly then switch it back :)

This archived topic is closed to new replies.