Okay
  Public Ticket #2756172
Save function.php after updating
Closed

Comments

  •  7
    Max started the conversation

    Hello,

    I just wanted to know something. I noticed that when I updated the Salient theme, everything I added in the function.php file was deleted. Is there a way to put these lines of code somewhere else to keep them after an update?

    Thank you a lot :)

  •  1,878
    Judith replied

    Hi Max,

    It is advisable you use the child theme while making changes to the core files, however, you note that if you modify any PHP, JS or CSS files (other than the style.css) via your Salient child theme you’ll be responsible for keeping them up to date when upgrading to newer Salient versions. For example, if you modify the header.php via your child theme and update Salient – if that file has changed in the current release you could encounter errors on your site if you don’t update your child theme header.php to include the changes.

    Thanks.

  •  7
    Max replied

    Understood! Thank you Judith :)