-
AuthorPosts
-
February 19, 2016 at 1:27 pm #586026
Hi, in order to avoid css changes being overwritten I’ve been editing the themes/enfold-child/style.css file in a text editor rather than using Quick CSS or Appearance/Editor. However I was having trouble making some menu css edits take effect and tried in the Quick CSS window and it worked. Am I editing the correct file?
Just to double-check, what css file should I use to make changes on the site and how will I avoid it being overwritten when Enfold updates take place?
Thanks,
JohnFebruary 19, 2016 at 3:22 pm #586107Hey johnmac1967!
Quick CSS field is the right place. We recommend to use a child theme: kriesi.at/documentation/enfold/using-a-child-theme/
Cheers!
AndyFebruary 19, 2016 at 3:30 pm #586115Sorry, that’s not what I meant. I AM using a child theme. I don’t want to make my changes in the quick CSS window as it’s tiny and I usually have a lot of css code. I would like to use a text editor to make my changes. Can you tell me what css file I should be adding my code to and whether it will be overwritten by Enfold updates?
I used the style.css file in the Enfold Child folder but some changes made weren’t working (see above). What file should I use?
Thanks.
February 21, 2016 at 7:08 pm #586720Hi, I would appreciate an answer as soon as you can as unfortunately you didn’t read my question properly when you gave me the above answer and as yet have not answered my reply which was delivered two minutes after your reply. This was two days ago (I do understand its the weekend but I have had tech support from you at the weekend before).
Thanks.
JohnFebruary 21, 2016 at 9:05 pm #586746Hey!
if you are using a child theme, then you can add your CSS changes inside the style.css file.
Sorry for the delay, but we work based on priorities and when posting a reply, the topic goes to end of the line.Thanks a lot
Best regards,
BasilisFebruary 21, 2016 at 9:44 pm #586761Thanks Basilis. Strangely though when I make changes on themes/enfold-child/style.css it often doesn’t apply them to the page yet when I make them on themes/enfold/css/custom.css the changes take effect.
Is it okay to make changes to the themes/enfold/css/custom.css file or will this be written over by Enfold updates?
Thanks for your help.
February 23, 2016 at 12:40 pm #587659Hi!
It is okay to make changes on custom.css file but it would be overwritten when you update the theme. You can try using !important rule as following in your codes
body { font-size: 16px !important; }
Cheers!
YigitFebruary 23, 2016 at 12:45 pm #587660Thanks Yigit, can you explain why when changes are made in the custom.css file they take effect on the page and yet when I make them in the styles.css file in the Child Theme they often don’t. Most changes work but changes to things like dropdown menus do not take effect unless made in the custom.css file.
February 23, 2016 at 12:47 pm #587665Hi!
You may have error in your custom CSS code. If you do not mind creating a temporary admin login and posting it here privately, we can look into it.
Best regards,
YigitFebruary 23, 2016 at 12:49 pm #587667Thanks Yigit. It’s on my local drive at the moment but as soon as I upload it I’ll contact you.
Thanks for the quick response.
JohnFebruary 23, 2016 at 1:05 pm #587679Hi!
Alright John! We will keep the thread open and wait to hear from you. It will be on hold until you reply.
Best regards,
YigitMarch 4, 2016 at 12:18 am #593048Hi,
I’ve created a login for you to have a look at the above problem.The child theme file is in the usual place themes/enfold-child/style.css – changes to this file often do not work. Changes made to the below file work fine but this file will be overwritten when Enfold updates, is that correct?
wp-content/themes/enfold/css/custom.css – changes made to this file work fine.
I would be grateful if you could look at this. I’ve attached my logon and ftp info. Something must be preventing changes made to style.css from taking place.
Thanks,
JohnMarch 8, 2016 at 9:33 pm #595175Hi!
changes to custom.css won’t be overwritten. However, we strongly recommend to use a child theme: kriesi.at/documentation/enfold/using-a-child-theme/
Regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.