Global CSS vs Child Theme CSS

Global CSS vs Child Theme CSS

Two questions:

  1. Is Global CSS the same as Child theme CSS?
  2. Is it ok that it is replicated in both locations or is this not necessary?

Thanks in advance.

Paul.

Hi Paul,

  1. They are basically the same but Global CSS has a higher priority.
    Another thing is that Global CSS is saved in the database while child theme css is being saved in a file.

  2. No need to replicate your code on both locations. you just need to select one that is comfortable for you.

Thanks

Does it affect loading times having both? or is it ok as a backup?

Paul.

Hi Paul,

It is not recommended to have a two instances of identical codes because it will add to the script loading time as they are loaded separately although, you should not notice a significant change in the site loading speed depending on the amount of CSS codes you have.

Hi Jade,

Is there a way to give the child theme a higher priority? I prefer editing the CSS outside of the database.

Thanks!

Hugo

Hello @HugoW,

Thanks for writing to us.

To render style from the child theme with heigh priority it would require custom development so that new style file can be enqueued. I would suggest you consult a developer who can assist you with your concern or you can avail our service called One, where the customization questions are answered.

Please note that we don’t provide custom development support. It is out of the support scope.

If you have an idea about coding, please have a look at this article for reference.

Thanks for understanding

Hi Prakash,

Thank you for your quick response!

Kind regards,

Hugo

You are welcome @HugoW