Social Share providing incorrect content preview

Hi,

Could you help us out with a social share button issue? We are attempting to provide a Facebook Share button on our page, “Words Architects Avoid” but when testing it out, the facebook share pop-up previews an unrelated title and body of text snippet (showing incorrect Gallery of Architectural Quotations).

We previously thought that we had it working per the method in our previous support thread discussion, but apparently we didn’t test it thoroughly.

We saved it as a template so we could use it throughout our site and it seems to have retained that test page title “Social Share 5”

Is there a way to control what the title and snippet are in the pop-up? Here is a link to the page we are trying to get it to work on:

http://s1106739.instanturl.net/words-architects-avoid/

And screenshot of the pop-up we are getting

Hi @ErgoArchitecture,

Thank you for reaching out to us. It seems like you’re using a custom Facebook sharing button with static content that displays same title and snippet on every page, I’d suggest you to use the Entry Share shortcode instead http://demo.theme.co/integrity-1/shortcodes/entry-share/

To add it on all pages programmatically, you can add the following code in your child theme’s functions.php file:

function x_add_social_sharing() {
		if ( is_page() ) {
  			echo do_shortcode('[x_share title="" facebook="true"]');
		}
}
add_action('x_before_the_content_end', 'x_add_social_sharing');

Hope this helps!

Hi Nabeel,

We were trying to make the share button match our other navigation buttons, as we only need one. That seems like it might be a bridge too far, as I understand that hacking a scrip to make it work with our buttons is beyond the scope of your tech support.

I think we will eventually go to a third-part plugin and add other social options too.

Thanks for your help!

Steve

You are most welcome Steve!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.