Jump to content

Edit History

butlerov

butlerov


solve problem

Hi. I wanna insert a markup only on one cms page, how to do it? when i have only one header.tpl for all pages. prestashop 1.6.1 default theme. Thx for the trouble

Solved. Had to use {if $smarty.get.id_cms == 4 }{/if} in header.tpl

<script type='application/ld+json'> 

{

  "@context": "http://www.schema.org",

  "@type": "Organization",

  "name": "Название Компании",

  "telephone": "+08*****",

  "email": "эл. почта",

  "url":"http://www.name.com",

    "logo": "http://www.name.com/include/img/logo.png",

  "description": "Описание",

  "image": "http://www.name.com/include/img/logo.png",

  "address": {

    "@type": "PostalAddress",

    "streetAddress": "Адрес улица, проспект, дом, офис",

    "addressLocality": "Город",

    "addressRegion": "Область",

    "postalCode": "Почтовый индекс ЦИФРОЙ",

    "addressCountry": "RU"

  }

  }

}

 </script>

 

butlerov

butlerov

Hi. I wanna insert a markup only on one cms page, how to do it? when i have only one header.tpl for all pages. prestashop 1.6.1 default theme. Thx for the trouble

<script type='application/ld+json'> 

{

  "@context": "http://www.schema.org",

  "@type": "Organization",

  "name": "Название Компании",

  "telephone": "+08*****",

  "email": "эл. почта",

  "url":"http://www.name.com",

    "logo": "http://www.name.com/include/img/logo.png",

  "description": "Описание",

  "image": "http://www.name.com/include/img/logo.png",

  "address": {

    "@type": "PostalAddress",

    "streetAddress": "Адрес улица, проспект, дом, офис",

    "addressLocality": "Город",

    "addressRegion": "Область",

    "postalCode": "Почтовый индекс ЦИФРОЙ",

    "addressCountry": "RU"

  }

  }

}

 </script>

 

×
×
  • Create New...