Make image Size configurable | WordPress.org

[ad_1]

Hello,
I came across an issue: Whatsapp and Signal also use the OG Data to select a preview image. But the default image size ‘full’ is too big, so no image is shown. Changing the size to ‘large’ fixes the issue since it serves a smaller image.

I am not sure if ‘full’ is really useful in the og data anyway – but it would be helpful to at least make the size configurable somewhere 🙂

My current solution is to run sed after each upgrade (which is managable but slightly inconenient)

sed -i -e "s;'full';'large';g" class-iworks-opengraph.php

Greetings, Ulrich

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer