Ok and do you have recommended way? In child theme, of cource
And also I have a question: how can I add pagination to the page? In direct place? Footer and Header php are not available in child and even if I choose general theme there is no opinion to add pagination. It seems like this function was deleted from php code