Site logo

Archived topic

Best practise : CSS style using Elements VS simple CSS

3 replies · Started by Adrien on January 29, 2021

Viewing posts 1–4 of 4

Dear GP Team,

I wanted to css style all my blog article pages.

In order not to bloat my Simple CSS affecting all pages, I have created an element Hook loading on all articles wp_head.

Is this a bad practice? Is it better to place all css within the mane simple css? Will it affect speed?

Thank you for your insights.

Best, Adrien.

Hi there,

Simple CSS is hooked inline to the wp_head - which is exactly the same as your element :)
So performance wise there is no real difference.

Unless you're using the Hook Display Rules to target specific pages, it would be better to keep it all in one place.

Thank you very much David! Appreciate your guidance.

You're welcome

This archived topic is closed to new replies.