Thanks for your reply.
As I understand it, using hooks it is possible to insert code in the same places on each page.
But I need to insert text in different places on the pages.
For example, on one page – at the beginning of the article, on the other – in the middle to become, etc.
That is, I need to paste the text anywhere in any page (e.g. as a Template widget in Elementor Pro).
Is it possible to do this?
why not create an Elementor Template containing your text. Then when you are creating your pages use the Elementor Template Widget to pull in the template. Changes to the Template will then appear on all pages.
Yes, I understand.
But I do not want to use the Elementor, I wrote about it only as an example.
I just wanted to know if I can paste in the text as I wrote earlier only with the help of your theme tools.