New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add filter for different open graph image #410
Comments
Hi David, Cheers 😄 There's a filter in place: the-seo-framework/inc/classes/render.class.php Lines 296 to 310 in 4374529
Note that I'm going to overhaul the image rendering in the next major release. I doubt the filter above will be affected; however, it is why I'm not encouraging using alternatives (which would resolve the As for your suggestion for integration: I'm slowly working towards this, and it's implied in the issues below. |
I'd like to suggest an improvement/fix, especially if the rewriting of this subsystem is in the works. What I tried to do is to generate a special (overlay'd) image to use as But the |
@karex Are you suggesting that I should add a filter that defines the optimal dimensions when automatically optimizing the image, and/or when the user wants to crop the image? e.g., "I want it to be either square or large"? If so, could you open a new issue? The As for filtering the sizes on-demand, yes, TSF uses 'full'. You can filter that via |
@sybrew thanks a lot for the superfast reply and the solution! Yeah, I think I haven't suggested what you mentioned. Well, I don't know if I understood it fully. But generally I think it's ok that TSF goes with 'full' by default. Hope the transition will be easy to the new filter. Thanks again! |
Will there be a replacement for |
Hi @Glashkoff, Yes. But how this will work is still to be determined, and whether the old filter will still be available is also TBD. Please subscribe to #403, where I'll present a full list of related API changes for v3.3.0. Just like I've done here. |
At first: thanks for your wonderful plugin, I love it! :-)
I want to suggest to add a filter for the open graph image.
That I way an image can be set for custom post type archives.
Alternative: add a setting so an image could be added via media library.
Example use case:
On a site for one of my plugins I have a CPT "docs" and also "changelog". For both I want to set a different open graph image - and not use the "global" website fallback image (from your settings).
So when I share those URLs, like example.com/docs/ or example.com/changelog/ that it will only use my set open graph images from the filter or alternatively from the settings.
Since I could not find any filter for this in the current version (v3.2.2) I am proposing this change here.
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: