[Resolved] Best practise : CSS style using Elements VS simple CSS

Home Forums Support [Resolved] Best practise : CSS style using Elements VS simple CSS

Home Forums Support Best practise : CSS style using Elements VS simple CSS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1639033
    Adrien

    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.

    #1639295
    David
    Staff
    Customer Support

    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.

    #1639692
    Adrien

    Thank you very much David! Appreciate your guidance.

    #1640268
    David
    Staff
    Customer Support

    You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.