Resolvedchanges after updating the theme
- This topic has 7 replies, 2 voices, and was last updated 3 years, 8 months ago by
Althemist.
- AuthorPosts
- February 5, 2020 at 8:53 pm #21157
morenavecchi
ParticipantHello,
I’m working on http://www.ilgiardinodellezucche.it and I’m finished at 99%. I did 2 manual changes:
1- I have to hide menu responsive in Zass-responsive.css
2- In product page I’ve translate manually “Refine products”, “Sort by” and “Show” in italian.This changes have been replaced when I’ve updated the theme.
What can I do to make my changes permanent?
I’m already using Zass child theme
Thnaks
Stefano
February 6, 2020 at 3:39 pm #21178Althemist
KeymasterHello morenavecchi,
If you edited the zass-responsive.css directly in the theme folder – that’s normal. Any file you modify must be copied in the child theme (keeping the same folder structure of course) and edited there. e.g. – for the zass-responsive.css you’d need to create a folder named “styles” under zass-child and copy the file there. After that, you can edit the files.
As for the translation, if done the right way it can’t be affected by an update. I’d suggest using a plugin like Loco Translate for any edits on text strings:
hope this helps.
Regards,
DimitarMarch 17, 2020 at 12:50 pm #21734morenavecchi
ParticipantHelo Dimitar,
apologize me 🙂 I followed the instructions you gave me, and the translation problem I managed to solve, but the problem of the mobile menu that appears I was not able. I explain to you:
I created a Styles folder inside the zass-child folder and copied zass-responsive.css, then I modified the file on line 86 “display:” none ” but still, after each update of the template, the menu reappears
what step am I missing to be able to solve this problem? Thanks
StefanoMarch 19, 2020 at 9:20 am #21761Althemist
KeymasterHello Stefano,
I hope you did not replaced the child theme too?? The child theme is not meant to be updated and there are no changes in it.
March 19, 2020 at 10:37 am #21769morenavecchi
ParticipantHello,
I tried 2 ways: writing “display: none” in zass and then copying it to zass-child; or leave “display: table” in zass, then copy zass-responsive.css the file and edit it there but the result is always the same: the page always responds to changes in the parent theme.I made a further test: in wordpress editor of the theme I modified zass-responsive (parent) and I discovered that the site responds to the changes of the parent theme even though it is using the child theme.
Thanks for your patienceMarch 20, 2020 at 1:45 pm #21807Althemist
KeymasterHello morenavecchi,
May be you’re missing the main purpose of child-themes and how do they work.
Child-themes are just an “addition” to the main theme. The parent theme is always active and the child theme overwrites some of it’s parts. I’d suggest leaving the parent theme without changes and only make changes in the child theme CSS files. This way, any time you update the parrent theme, the changes will be preserved in the child theme as it is never updated.
Hope this helps.
Regards,
DimitarMarch 20, 2020 at 4:17 pm #21814morenavecchi
ParticipantHello,
yes you’re useful! In fact I managed to solve all the problems, your assistance is fantastic! I only have this last problem: every time I update the template the responsive menu reappears … I don’t think it has to be hidden manually every time, I think there is a solution, right?March 23, 2020 at 4:19 pm #21844Althemist
KeymasterYes, you can add your custom code for the menu in the child-theme’s style.css instead of the default position in zass-responsive.css
Just make sure you’re using the correct media-query
- AuthorPosts
You must be logged in and have valid license to reply to this topic.