I have a question about wordpress, I need the current theme installed on my wordpress not to be loaded on a certain page, is it possible?

What I want to do is create a bootstrap dashboard, and I don't want to load the default theme. The idea is to develop a dashboard via plugin and generate all the html, header, content, footer.

I thought about using "WP_USE_THEME" and using external files, but I need to use wordpress functions like: add_action, add_shortcode and etc.

I accept suggestions too !!! Thank you.

1 Answer 1


Why not create a template file that gets loaded by the dashboard page? It is possible to create a template just like a theme template that actually lives in the plugin itself. That way, you can still call wp_head() and wp_footer() and have full access to WP functionality, but not actually pull in whatever theme the site is using.

Here's an answer that shows how to do it: How to add custom template in plugin?

  • I didn't know this filter, it's really what I want, thanks @WebElaine Commented May 8, 2020 at 2:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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