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

Header image in social media post #266

Closed
MGravemade opened this Issue May 2, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@MGravemade

MGravemade commented May 2, 2017

I have set my header image with the option:
Appearance -> Header

Now, when I refer to my website on social media, I don't get the header image in my social media post.

When I set the header image through the Pages -> Edit -> Featured image option, then this works fine, but I don't want to use this option.

Is this a bug?

@raamdev

This comment has been minimized.

Show comment
Hide comment
@raamdev

raamdev May 2, 2017

Owner

Can you give me some example URLs and let me know which social media network you're seeing this issue with?

Owner

raamdev commented May 2, 2017

Can you give me some example URLs and let me know which social media network you're seeing this issue with?

@chrisaldrich

This comment has been minimized.

Show comment
Hide comment
@chrisaldrich

chrisaldrich May 3, 2017

Contributor

This sounds more like an OGP problem relating to a social and/or SEO plugin (Yoast or All in One perhaps). Does Independent Publisher set meta tags with open graph protocol? I don't imagine it does.

If you view the source of the page (that does show the featured image in social media) you'll usually see something like the following in the header of the page:
<meta property="og:image" content="http://example.com/wp-content/uploads/photo_path.jpg">
This is the meta tag the social platform is likely pulling the image from.

It's possible that it's the case that the SEO/other plugin is automatically pulling the photo from the theme in one case but not the other. These plugins typically have settings to allow overriding the featured photo, using a default photo if one isn't specified, or not using one at all.

This sounds to me more like an issue with another plugin causing the problem and not the theme.

Contributor

chrisaldrich commented May 3, 2017

This sounds more like an OGP problem relating to a social and/or SEO plugin (Yoast or All in One perhaps). Does Independent Publisher set meta tags with open graph protocol? I don't imagine it does.

If you view the source of the page (that does show the featured image in social media) you'll usually see something like the following in the header of the page:
<meta property="og:image" content="http://example.com/wp-content/uploads/photo_path.jpg">
This is the meta tag the social platform is likely pulling the image from.

It's possible that it's the case that the SEO/other plugin is automatically pulling the photo from the theme in one case but not the other. These plugins typically have settings to allow overriding the featured photo, using a default photo if one isn't specified, or not using one at all.

This sounds to me more like an issue with another plugin causing the problem and not the theme.

@MGravemade

This comment has been minimized.

Show comment
Hide comment
@MGravemade

MGravemade May 3, 2017

This problem happens on Facebook and LinkedIn.

I did some further testing.

The og:image tag is showing the last image in the page. For example I have added a test page with a test image just in the text field and then the meta tag is showing:

Test page: https://connect2convert.nl/test/

On my other pages the social media icons are the last images...

MGravemade commented May 3, 2017

This problem happens on Facebook and LinkedIn.

I did some further testing.

The og:image tag is showing the last image in the page. For example I have added a test page with a test image just in the text field and then the meta tag is showing:

Test page: https://connect2convert.nl/test/

On my other pages the social media icons are the last images...

@MGravemade

This comment has been minimized.

Show comment
Hide comment
@MGravemade

MGravemade commented May 3, 2017

The meta tag was missing in my comment:

property="og:image" content="https://connect2convert.files.wordpress.com/2017/03/7048c292b0ee4891b6aa473b31b9d7b8-e1492496158324.jpg" />

@raamdev

This comment has been minimized.

Show comment
Hide comment
@raamdev

raamdev May 3, 2017

Owner

@MGravemade You're using Independent Publisher on WordPress.com. That's not the same as the Independent Publisher hosted here on GitHub, which is for the self-hosted (WordPress.org) version of WordPress. Please see http://independentpublisher.me/2016/getting-support-for-independent-publisher-on-wordpress-com/

Owner

raamdev commented May 3, 2017

@MGravemade You're using Independent Publisher on WordPress.com. That's not the same as the Independent Publisher hosted here on GitHub, which is for the self-hosted (WordPress.org) version of WordPress. Please see http://independentpublisher.me/2016/getting-support-for-independent-publisher-on-wordpress-com/

@raamdev raamdev closed this May 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment