Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hi!
I have edited the /parts/footer.php file but It gets owerwritten when I update the theme.
How do I prevent this?
Hi Stefan
By default when you update a theme all files get replaced. To stop this you should be using a child theme.
https://codex.wordpress.org/Child_Themes
Here is a link to a bare child theme for Vantage for you to use.
https://siteorigin.com/wp-content/uploads/2015/01/vantage-child-vanilla-enqueue.zip
When you have installed and activated this you will be able to make a copy of the /parts/footer.php and place it in your child themes directory, using the same directory structure as Vantage Premium. (wp-content/themes/vantage-child/parts/).
If you edit this copy of the footer.php it will not get overwritten when you update in the future.
Let us know how you get on
Magus
Hi Stefan
@Magus has elaborated to the letter what you require to do to preserve changes made. Try that out.
@Magus much appreciated
Okay, so week ago I created site on free hosting and easily remove “Site Origin Theme” from footer without any “child theme” thing…I even dont know what is this? And now Im trying to edit footer on other site and got issue like topic starter. How is that could be?
Hi Stefan
Generally if you want to make changes to theme files e.g. footer.php, you are required to make the changes in a child theme. If you modify a theme file directly and you make an update to the theme, all your modifications will be lost.
By using a child theme you will ensure that your modifications are preserved.
I recommend that you follow the same procedures as you did on your previous site.
Remember : When you activate a child theme you will lose all Customizer and menu settings. This means you need to head to Appearance > Customize, redo everything there and then head to Appearance > Menus and re-assign your primary menu to the theme’s menu location.
Try that out and let me know where you encounter issue I jump right in
Cheers