Sarahbirdsboutique Posted July 28, 2016 Share Posted July 28, 2016 (edited) 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]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![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′}"> <meta property="og:image" content="https://sarahbirdsboutique.co.uk/img/my-store-logo-1446669696.jpg"> </head> Edited July 28, 2016 by Sarahbirdsboutique (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted July 29, 2016 Share Posted July 29, 2016 I get blank page at https://www.sarahbirdsboutique.co.uk. Link to comment Share on other sites More sharing options...
Sarahbirdsboutique Posted July 29, 2016 Author Share Posted July 29, 2016 (edited) yeah me too. reverted back to my old header.tpl and all fixed now. Edited July 29, 2016 by Sarahbirdsboutique (see edit history) Link to comment Share on other sites More sharing options...
Sarahbirdsboutique Posted August 3, 2016 Author Share Posted August 3, 2016 I fixed the blank page, but still have no idea how to get my logo to appear as the preview image on facebook. Any tips please? Link to comment Share on other sites More sharing options...
vekia Posted August 3, 2016 Share Posted August 3, 2016 your <head> section does not have any kind of "og" tags. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now