Jump to content

Facebook og:image confusion


Recommended Posts

Hi there, 

 

I'm using prestashop 1.61.6 and have tried to follow these instructions (https://dh42.com/blog/prestashop-and-og-tags/) to add meta tags to the header.tpl file but I don't know what I'm doing and the changes do not appear to have had any effect... I edited the file in notepad++ and cleared the shop cache

 

I'm trying to change the preview image for the url https://www.sarahbirdsboutique.co.uk on facebook from a picture of a black shirt to the shop logo

 

Would really appreciate some advice on how to do this please

 

this is my header section:

<head>
<meta charset="utf-8" />
<title>{$meta_title|escape:'html':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
<meta name="description" content="{$meta_description|escape:'html':'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
<meta name="keywords" content="{$meta_keywords|escape:'html':'UTF-8'}" />
{/if}
<meta name="generator" content="PrestaShop" />
<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
<meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />
<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />
{if isset($css_files)}
{foreach from=$css_files key=css_uri item=media}
{if $css_uri == 'lteIE9'}
<!--[if lte IE 9]>
{foreach from=$css_files[$css_uri] key=css_uriie9 item=mediaie9}
<link rel="stylesheet" href="{$css_uriie9|escape:'html':'UTF-8'}" type="text/css" media="{$mediaie9|escape:'html':'UTF-8'}" />
{/foreach}
<![endif]-->
{else}
<link rel="stylesheet" href="{$css_uri|escape:'html':'UTF-8'}" type="text/css" media="{$media|escape:'html':'UTF-8'}" />
{/if}
{/foreach}
{/if}
{if isset($js_defer) && !$js_defer && isset($js_files) && isset($js_def)}
{$js_def}
{foreach from=$js_files item=js_uri}
<script type="text/javascript" src="{$js_uri|escape:'html':'UTF-8'}"></script>
{/foreach}
{/if}
{$HOOK_HEADER}
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,600&subset=latin,latin-ext" type="text/css" media="all" />
<!--[if IE 8]>
<![endif]-->
<meta property="og:title" content="{$meta_title|escape:'htmlall':'UTF-8′}"/>
 
<meta property="og:site_name" content="{$shop_name|escape:'htmlall':'UTF-8′}"/>
<meta property="og:type" content="website">
<meta property="og:description" content="{$meta_description|escape:html:'UTF-8′}">
</head>
Edited by Sarahbirdsboutique (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...