- This topic has 5 replies, 2 voices, and was last updated 3 years, 4 months ago by Leo.
June 22, 2018 at 12:13 pm #606323Jose
Hi GPP Team,
I hope you’re doing well.
Firstly a bit of background: I have been adding CSS within plugins (i.e. Elementor, AE Elementor, WOOF Filters, etc), when needed.
My Question is: should I put all the CSS (together) in the Edit CSS of GPP or leave every CSS code within each place where is coded?
What’s best practice for optimising CSS?
Looking forward to hearing from you and appreciated as always your help with my doubts so far.GeneratePress 2.1.2GP Premium 1.6.2June 22, 2018 at 12:41 pm #606350LeoStaffCustomer Support
There isn’t an CSS editor from GPP.
I assume you are referring to additional CSS which is actually from WordPress itself.
Do you have lots of CSS? If so it might be better to create a child theme. See more info here:
https://docs.generatepress.com/article/using-child-theme/June 22, 2018 at 1:38 pm #606377Jose
Thanks Leo for the prompt response,
You assume right, the thing is in the Dashboard under “Appearance” is “Edit CSS” which links you straight into “Additional CSS” in the Customizer and this is a feature your theme introduced.
Regarding CSS, I might say altogether is no longer than 100 lines. Do you reckon I still need a child theme?
It’s all short tweaks for Images, Variations, Tabs and Filters, really that’s all, it does the job and I’m pretty happy with the results, I don’t think I would ever need an extra 100 lines of CSS.
Just for my knowledge, can you tell me how much “a lot” of CSS is? How many lines will be a lot?
So, the question is, all CSS under “Additional CSS” or it’s best to add the lines on the Custom CSS spaces available in every plugin? (Just the CSS required to tweak that particular feature).June 22, 2018 at 7:37 pm #606460LeoStaffCustomer Support
Again Additional CSS is from WordPress and not the GP. See explanation here:
Shouldn’t need a child theme for 100 lines of CSS. If you have like 500 lines then definitely child theme.
It shouldn’t matter too much where the CSS are added. Personally I prefer to add them all add one place so I only have to check one place when I want to edit them.
Hope this answers your question 🙂June 23, 2018 at 10:26 am #606928Jose
Appreciated, thanks Leo, that’s what I was after.
Keep the good job rolling!June 23, 2018 at 11:27 am #606970
- You must be logged in to reply to this topic.