Site logo

Archived topic

Conditionally Load Style Sheet

1 reply · Started by Blake on September 14, 2017

Viewing posts 1–2 of 2

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?

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 :)

This archived topic is closed to new replies.