On 3/10/2023 at 12:16 AM, DARKF3D3 said:You can try with this (i took this from head.tpl of PS1.7 classic theme):
{block name='head_open_graph'} <meta property="og:title" content="{$page.meta.title}" /> <meta property="og:description" content="{$page.meta.description}" /> <meta property="og:url" content="{$urls.current_url}" /> <meta property="og:site_name" content="{$shop.name}" /> {if !isset($product) && $page.page_name != 'product'}<meta property="og:type" content="website" />{/if} {/block}
It doesn't work, but I did my search and here is the correct code
<meta property="og:title" content="{$meta_title|escape:'htmlall':'UTF-8'}"/> <meta property="og:description" content="{$meta_description|escape:'htmlall':'UTF-8'}"/> <meta property="og:url" content="https://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"/> {if isset($product)}<meta property="og:type" content="Product" /> <meta property="og:image" content="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}"/> {else}<meta property="og:image" content="YourLogoURL"/> {/if}