- This topic has 6 replies, 2 voices, and was last updated 6 years ago by localgeek.
-
AuthorPosts
-
September 18, 2018 at 7:50 am #154248localgeekParticipant
Is it possible to edit the CSS for a child theme without using the GUI? I’d like to edit the .css file directly, but cannot find it for the child theme I created.
I created a style.css file in my child theme, but it’s not being applied/used.
ps- It’s the file used for the “Additional CSS” section that I’d like to edit directly.
Thanks in advance.
September 18, 2018 at 11:43 pm #154299sapanaParticipant@localgeek:Yes,It is possible to edit the CSS for a child theme without using GUI. For editing CSS you can simply Go to => Appearance => Customize => Additional CSS and add your CSS Code there.
Let me know if this helps you out!Kind Regards,
SapanaSeptember 24, 2018 at 8:33 am #154816localgeekParticipant@sapana – Sorry, I wasn’t clear about my question. When you say “Go to => Appearance => Customize => Additional CSS and add your CSS Code there”, to me, that’s the GUI. Is there a text file I can edit instead? Thanks.
September 25, 2018 at 1:58 am #154882sapanaParticipant@localgeek: You can use Plugin Generator Child Theme to create child theme, You can edit the Style.CSS of child theme to make changes on it.let me know if this helps you out!
Kind Regards,
SapanaSeptember 25, 2018 at 7:48 am #154904localgeekParticipant@sapana – I created the child theme manually, using the published WordPress process. That’s not the issue- I’ve done this with several other themes. And yes, I can edit the style.css file (it’s a flat text file in the child theme’s root directory). However, it doesn’t look like this style.css file has the same CSS settings as in the Appearance => Customize => Additional CSS area. Where is that CSS stored? Is it in a flat text file or in the database? Thanks.
September 25, 2018 at 11:49 pm #154939sapanaParticipant@localgeek:It’s stored in the database, within the wp_posts table, under the custom_css post type, where the post name is the theme slug. There you also have the related customize_changeset and revision post types.
Kind Regards,
SapanaSeptember 26, 2018 at 7:07 am #154988localgeekParticipantThank you!
-
AuthorPosts
- The topic ‘Child theme – edit CSS file directly, not in GUI’ is closed to new replies.