Theme keeps going to default files [closed]

If you’re editing the theme directly it might be because of an update, when a them updates it deletes all the changes you have made on it.

If you want to edit themes you have to create a child theme

Just create a folder next to your actual theme folder (wp-content/themes) with the name you want for your child theme and create the style.css file with the Template option of your stylesheet header pointing to your actual theme (write there the name of your actual theme folder).

To make any changes just copy teh page you want to modify from your theme folder to your child theme folder and edit it there.

That way the changes will remain after the update