[Support request] Conditionally Load Style Sheet

Home Forums Support Conditionally Load Style Sheet

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

    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
    #385420
    Tom
    Lead Developer
    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.