Ibai Posted April 5, 2022 Posted April 5, 2022 Hi there, When we share forum/categories in social media, it always loads the default community image. I'd like to be able to set a custom image for social media. I think it is almost done, though it should be improved. For instance, we can set a card for each forum to show in the grid view: But it's not loaded in the opengraph as you can see here: Any chance to add it to open graph? Thanks!
Markus Jung Posted April 5, 2022 Posted April 5, 2022 There is a plugin for this for forum topics. I use it and it works fine: Perhaps it could be expanded to forums/categories? Build-in would be even better, of course.
opentype Posted April 5, 2022 Posted April 5, 2022 So we are talking about sharing specific topics and showing the category image or sharing the (sub) forum itself and sharing the category image?
Ibai Posted April 5, 2022 Author Posted April 5, 2022 (edited) I was building a plugin/theme hook with this. Though I'd like to be native... It's an easy plugin, I manage to get that image though I'm not able to add it to the <head> tag 😇. If I create a theme hook forum forumDisplay, I cannot get access to head tag from that template bit. Any ideas? @opentype, I am talking about forum view, like this: https://invisioncommunity.com/forums/forum/499-feature-suggestions/ Edit: May I edit metatags object from a web hook? Edited April 5, 2022 by Ibai
Ibai Posted April 12, 2022 Author Posted April 12, 2022 I finally managed to create this plugin and shared with all of you here:
Recommended Posts