V
V
vaselekk2021-09-08 06:30:43
WordPress
vaselekk, 2021-09-08 06:30:43

How to make the file not changed?

I have a "page.php" file in word press. And there I have inserted a self-written simple code. Well, wordpress by itself restores the file to the original version and the code disappears (working code). Is it possible in wordpress to make the file not changed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
denn, 2021-09-08
@vaselekk

Read about "Child Themes". In a child theme, you can contribute as much code as you like. It won't change without your knowledge. And after updating the theme, the code will not be affected.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question