Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a way to enqueue only plugin styles and scripts without wp_head? I have a plugin I'm working on which overrides the page template, but I still want to include all other plugins without including the theme style. Since theme developers don't always enqueue their styles and often hardcode the link, what's the best way around this?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Since theme developers don't always enqueue their styles and often hardcode the link, what's the best way around this?

There is no way around this. Simply said: Let them burn. They're doing it wrong and as a 3rd party code developer you don't have to take wannabe developers into account.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.