S
S
Sergiy Motchany2019-10-20 11:52:27
MODX
Sergiy Motchany, 2019-10-20 11:52:27

AMP img (amp-img) modx revo?

Good day to all.
Faced such a problem that you need to change on AMP pages

<img src="" alt="Вопрос" class="img-fluid">

on the
<amp-img alt="Вопрос" src="" width="900" height="675" layout="responsive"></amp-img>

Need to replace
<img на <amp-img + добавить width="900" height="675" layout="responsive" а в конце добавить ></amp-img>.

Something like this.
I was told that it is possible to do something through str_replace, but I do not know how.
Help who than can.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-10-20
@i__dmitry

Where should it be replaced? In chunks, templates, page content?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question