How to conditionally enqueue a stylesheet only for a certain page(s)?

I copy pasted your code into my dev environment, changed nothing but the page name, and it works just fine. Are you sure that it’s not being enqueued and you just have it pointed wrong or that the page is not named incorrectly or something?

Leave a Comment