Skip to content

Instantly share code, notes, and snippets.

@jillmugge
Last active March 26, 2016 16:59
Show Gist options
  • Save jillmugge/11182390 to your computer and use it in GitHub Desktop.
Save jillmugge/11182390 to your computer and use it in GitHub Desktop.
Select the Facebook Image to use as thumbnail. Check Facebook results here: https://developers.facebook.com/tools/debug/og/object/ Place code below in functions.php, then call function in <head></head>
<?php
function facebook_thumbnail(){
echo '<meta property="og:image" content="http://jmgmarketinggroup.com/jmg/wp-content/uploads/JMG-Logo-v4.png" />
<meta property="og:type" content="website" />
<meta property="og:title" content="JMG Marketing Group | Dedicated to Building Websites that Pay for Themselves" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon" >
';
}
add_action('wp_head', 'facebook_thumbnail');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment