# Настройка SEO заголовков

#### Шаг 1

{% code lineNumbers="true" fullWidth="true" %}

```php
// В главном макете сайта в блоке head замените следующий код
/*
<title><?php Core_Page::instance()->showTitle()?></title>
<meta name="description" content="<?php Core_Page::instance()->showDescription()?>">
<meta name="keywords" content="<?php Core_Page::instance()->showKeywords()?>">
*/
// на нижний

<title><?php MultiRegion_Page::instance()->showTitle()?></title>
<meta name="description" content="<?php MultiRegion_Page::instance()->showDescription()?>">
<meta name="keywords" content="<?php MultiRegion_Page::instance()->showKeywords()?>">
```

{% endcode %}

#### Шаг 2

Теперь во всех SEO полях структуры сайта, интернет-магазина или информационных систем можно использовать Meta шаблоны подстановок\*

> **`Демонстрационный магазин в {multiregion.morphos 'name' 'предложный'}`**

`// Демонстрационный магазин в Екатеринбурге`

> **`Демонстрационный магазин в {multiregion.seo_title}`**

`// Демонстрационный магазин в Екатеринбурге`

{% hint style="danger" %}
\* обязательное условие, чтобы был создан регион по умолчанию и привязан к основному домену
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.morozovpimnev.ru/multiregion/nastroika-seo-zagolovkov.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
