# Detach front-end and use WP Headless

**URL:** https://discourse.roots.io/t/detach-front-end-and-use-wp-headless/11419
**Category:** trellis
**Tags:** nginx, ansible
**Created:** 2018-01-24T16:03:40Z
**Posts:** 11
**Showing post:** 2 of 11

## Post 2 by @kalenjohnson — 2018-01-24T18:41:41Z

I would think you have two options:

1. Use a WordPress theme which just loads your React files
2. Use an index.html which loads your React files

There should not be a lot of NGINX configuration needed. Just make sure `index.html` comes before `index.php`, and put the `index.html` file in the web folder.

None of that is tested, but if you’re just kicking off JavaScript, no need to overthink it.

---

_[View the full topic](https://discourse.roots.io/t/detach-front-end-and-use-wp-headless/11419)._
