Tagged: avia, javascript, theme update
-
AuthorPosts
-
October 1, 2016 at 4:32 pm #694227
I made a couple edits to my Enfold/js Avia.js file, and my changes are gone now, I’m guessing because a theme update. Does updating the theme overwrite Avia.js?
If so, how can I make sure Avia.js goes unchanged (or my changes stick)?
And if not, what else would cause Avia.js to get overwritten?
October 2, 2016 at 4:11 am #694267And same question re: search.php and loop-search.php (my edits to these files were wiped, but how can I keep my edits?)
October 3, 2016 at 6:13 am #694433Hi,
Thanks for getting in touch!
Yes, if you are making changes directly to the theme’s core files, then the changes will get overwritten each time you update the theme.
Any modifications that extensive should be made in a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/
Best regards,
JordanOctober 3, 2016 at 6:16 am #694435Hi,
I’m not sure exactly what edits you have done but yes, all theme files will be overwritten on updates. Please try installing a child theme: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/
http://kriesi.at/documentation/enfold/downloads/
Best regards,
RikardOctober 30, 2016 at 6:21 pm #705846Thanks guys! I created a child theme based on the above links and it’s working great.
My child theme will remain bare, in fact the functions.php and style.css are near empty (kept them as downloaded from above link). I only added the avia.js, loop-search.php and search.php files
Two last questions:
Does a child theme slow down the site’s performance/load times?
And since I used the “Import from Parent Theme” button within Enfold to copy my settings, are my customized CSS edits (found in Enfold -> General Styling) now found in 2 files and WordPress needs to read both when rendering my website to viewers (making it slower)?- This reply was modified 8 years, 1 month ago by enfold4phil.
October 30, 2016 at 8:49 pm #705883Hey!
1. No, the child theme does not create any performance issues at all.
2. Yes, if you have transfered your CSS to a different file, no need for the custom css any more.Let us know if we can help you further
Cheers!
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.