Fallback size for custom social media image filters
-
Hello, I use these filters to select the facebook/twitter image sizes:
– wpseo_opengraph_image_size
– wpseo_twitter_image_sizeHowever, when the attachment doesn’t exist, yoast doesn’t output anything. Instead it should fallback to the full image size.
Similar topic: https://www.ads-software.com/support/topic/fallback-size-in-wpseo_opengraph_image_size/. It was closed with the comment ‘You or your developer could add an if/else statement that checks if the image has a custom size before returning the custom size.’. However, this is not possible because these filter calls don’t receive any parameters – I would need the image link in order to decide on a fallback myself.
- The topic ‘Fallback size for custom social media image filters’ is closed to new replies.