Z
Z
Zholtayev8082016-07-19 07:20:34
Yii
Zholtayev808, 2016-07-19 07:20:34

How to change meta tags?

I can't find the way to them, please help.

Yii::app()->controller->widget('ext.seo.widgets.SeoHead',array(
    'defaultDescription'=>$this->getSetting('seo_description'),
    'defaultKeywords'=>$this->getSetting('seo_keyword'),
));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korovin, 2016-07-19
@Zholtayev808

You were given the wrong direction in the last question. If you are using the advanced Yii2 template, then [frontend|backend]/views/layouts/main.php contains the default wrapper for your pages, the meta tags are written there. Or do you need to change them dynamically?
a8e92e1dd82e48f392e6242201a351f3.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question