Premium support

Please log in to post in these forums. If you didn't create an account when you purchased, please contact us.

Free support

If you haven't purchased GP Premium, support for the free theme can be found on

[Support request] Conditionally Load Style Sheet

Home Forums Support Conditionally Load Style Sheet

This topic contains 1 reply, has 2 voices, and was last updated by  Tom 8 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #385149

    I am not sure if this is out of the scope of your support but I figured I would ask just in case. With my current design I have an issue with the styling for the operator entry-content. On Pages it needs different styling than on POSTs.

    What conditional statement can I include in my functions.php that when the website identifies a POST will enque a different style sheet from my child theme folder?

    GeneratePress 1.4
    GP Premium 1.4.3

    Lead Developer

    You could use is_page(), but you could just use some CSS in your existing stylesheet:

    .page .entry-content {

    Let me know if this helps or not 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.