How to change shareaholic META tags
-
Wordpress is installed on a regular server, but I am hosting all my media/images on AWS S3. So every Featured image gets pushed to S3 instead of hosting locally on the site’s server.
All is well, except that the META Tags Shareaholic auto-generates still show my attachment/image URL as being my local domain.
This causes a problem because whenever I click a ‘share’ link, no images come through on the post teasers.
My temporary solution is this (below), but a better solution would be much appreciated.
Wordpress 5.3
Shareaholic Version 8.13.11Thanks
Rob// /wp-content/plugins/shareaholic/public.php (line: 310) if ($thumbnail_src != NULL) { $thumbnail_src = str_replace('https://domain.com', 'https://AWS-Domain.com/',$thumbnail_src ); echo "<meta name='shareaholic:image' content='" . $thumbnail_src . "' />"; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to change shareaholic META tags’ is closed to new replies.