WordPress Admin and React frontend

  • Unknown's avatar

    Currently, I have a WordPress site for a client that was initially built and managed on wordpress.com.
    I was brought on board to build the frontend using React and leverage the WordPress API.

    My question now is, since the main site is still managed on WordPress and sits on the primary domain, how can I serve the React frontend on the primary domain and still be able to login to WordPress admin?

    Currently, the react app sits on a subdomain and works fine, but I want to serve that on the primary domain while preserving the ability to allow the client still log in to their WordPress admin dashboard.

  • Hi there,

    Can you tell me the URL of the site?

    What you’re describing is using WordPress as a headless CMS for your React app.

    It might be possible to use a plugin to set this up on a WordPress.com site. Using plugins on a WordPress.com site requires our Pro plan, and for advice on which plugins you can use for this you can ask the WordPress.org community at https://wordpress.org/support/forums/.

    Doing this without a plugin isn’t possible on WordPress.com as far as I know, as you’d need to make modifications to files that we don’t give access to for sites hosted on our servers.

    We also don’t provide support for custom development work like this, so I’m not able to help you regarding the specific process you’ll need to follow to set up WordPress as a headless CMS. But there are tons of documentation and tutorials available online that you can use for guidance in this regard.

  • The topic ‘WordPress Admin and React frontend’ is closed to new replies.