I have about four images across two side bars. When I click the ShareThis button to Facebook, how do I control which image it selects by default?
Thanks.
I have about four images across two side bars. When I click the ShareThis button to Facebook, how do I control which image it selects by default?
Thanks.
Hi iechefs,
You should be able to control that with Facebook Open Graph Meta information.
You can insert code into your functions.php file:
http://www.wpbeginner.com/wp-themes/how-to-add-facebook-open-graph-meta-data-in-wordpress-themes/
Or you can install a plugin to do add that functionality for you:
http://wordpress.org/extend/plugins/facebook-open-graph-meta-in-wordpress/
Hope this helps!
/extend/plugins/facebook-open-graph-meta-in-wordpress/ broke the ShareThis plug in. I'll try the other link.
Thanks
So I tried the other link and pasted the following into my /wp-includes/functions.php file:
[Code moderated as per the Forum Rules. Please use the pastebin]
It crashed the program. So I commented it out. Now it is working again, but it still loads the wrong image.
By the way, I pasted it after the "<?php" and before the "?>" and not within any other function or procedure.
The website is located at http://www.iechefs.org
Never, ever, edit core WordPress files like that! You should be editing your current theme's functions.php file.
There isn't a functions.php in the theme--at least I didn't find it. I commented it out, but I can remove it complete. Do some themes have a different file name equivalent to functions.php?
No - Graphene will have a functions.php file.
Hi iechefs,
You should be able to view your theme's functions.php file in the Editor in your WordPress dashboard. It will have a title above the filename that says Theme Functions.
Hope this helps!
You must log in to post.