Style.css or Theme custom CSS field?

Posted in: Newspaper
Post count: 200

When using custom CSS code, which option is technically better – to add the custom code in the style.css file of the child theme or in the theme custom css field?

Thanks!

Post count: 18283

Hello !

The best option now available is to simply insert your css in theme panel here: https://www.screencast.com/t/y1tCXwd9PJj

Thank you !

Post count: 200

Thanks for advising on this!

Post count: 200

However after some testing I’m seeing the following – when some custom css is added in the theme custom css field, the original css blinks on page load and then the custom css takes place.
If the custom css is added to the style.css file in the child theme folder, then this effect is not present.

Post count: 18283

Hello !

Than you should work this out using child theme. Find out here how to set up your child theme: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you !

Post count: 200

I do have a child theme. It is manetioned in my only sentence and is part of the query…

With the time passing by there’s some css code in my child theme style.css as well as in the theme custom css code filed. I wanted to know which is better – to move all css code in the theme field or in the style.css.

Post count: 18283

Hello !

The recommended version is to use the child theme because this will be more helpful over an update in your style.css.

Thank you !

  • This reply was modified 5 years by Vlad S.
Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.