Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Sign Up

Метаданные lkz


Recommended Posts

Всем привет.

Помогите разобраться.

Зашел вот сюда https://realfavicongenerator.net/social/#.WcroNGi0OHs

Сгенерировал код:

<meta property="og:image" content="/og-image.jpg">
<meta property="og:image:width" content="216">
<meta property="og:image:height" content="216">
<meta property="og:title" content="My site">
<meta property="og:url" content="https://mysite.ru">
<meta property="og:description" content="Интернет магазин">

Как его вставить в header?

У нас там имеется свой код что удалить что бы не читало иконку с логотипа сайта

<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo $title; if (isset($_GET['page'])) { echo " - ".$text_page ." ". ((int) $_GET['page']);} ?></title>
<base href="<?php echo $base; ?>" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; if (isset($_GET['page'])) { echo " - ". ((int) $_GET['page'])." ".$text_page;} ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content= "<?php echo $keywords; ?>" />
<?php } ?>
<meta property="og:title" content="<?php echo $title; if (isset($_GET['page'])) { echo " - ". ((int) $_GET['page'])." ".$text_page;} ?>" />
<meta property="og:type" content="website" />
<?php if (isset($og_url)) { ?><meta property="og:url" content="<?php echo $og_url; ?>" /><?php } ?>
<?php if (isset($og_image)) { ?>
<meta property="og:image" content="<?php echo $og_image; ?>" />
<?php } else { ?>
<meta property="og:image" content="<?php echo $logo; ?>" />
<?php } ?>

Помогите объединить 2 этих кода.

Link to post
Share on other sites

Уберите в w header

<meta property="og:title" content="<?php echo $title; ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo $og_url; ?>" />
<?php if ($og_image) { ?>
<meta property="og:image" content="<?php echo $og_image; ?>" />
<?php } else { ?>
<meta property="og:image" content="<?php echo $logo; ?>" />
<?php } ?>
<meta property="og:site_name" content="<?php echo $name; ?>" />

Скачайте ето:

https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=22963

если надо чтото править пишите в личку.

Link to post
Share on other sites

Спасибо за модуль.

Но как теперь все настроить?

Не могу найти настроек.

Модуль вижу установленный.

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.