• In the target options that your plugin gives, I don’t see an option to target my default page/home (index.php). I want to add a react module to the index.php file of my site. I built the site/theme in VSC, and made all the template/singles etc.. pages. How can I target the index.php to add react to my homepage?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter oiver55

    (@oiver55)

    Just so you have the full context, this 44 – R3F and Drei (virtual-teeth.netlify.app) is the module that I made which I want to incorporate into my home page.

    Plugin Author rockiger

    (@rockiger)

    ReactPress can’t add React apps to templates. What you can do, is using a page as homepage in your WordPress settings and add your React app there and build your index.php or front-page.php around that page.

    Thread Starter oiver55

    (@oiver55)

    Thanks very much I now have it up and running however for some reason it saying that it can’t find my gltf file. Here are some screenshots to make the issue clear.

    I notice that the error message shows that it expects the word home in the path for my gltf file. So I actually went ahead and put my gltf folder inside another folder called home, but I still get the same error. Here are some screenshots.

    Thread Starter oiver55

    (@oiver55)

    If you would like to take a look at it hands on, here are the contents of my reactPress folder minus the node-modules folder oiver555/react-dentures (github.com). If somehow you get it to work, it will look like this…

    • This reply was modified 5 months, 3 weeks ago by oiver55.
    Plugin Author rockiger

    (@rockiger)

    I guess you didn’t create your React app with ReactPress in the first place. Are you using CRA here? Maybe you can refer to their documentation or use an absolute path to the gltf file.

    The relative path you are using seems to be the problem for me.

    • This reply was modified 5 months, 3 weeks ago by rockiger.
    Thread Starter oiver55

    (@oiver55)

    Yes that is correct I made it separate from React Press. It was only afterwards that I learned about your plugin. l didn’t use CRA to make it though. I still see your original message I will try that with my Vite.config file to see what happens. Thank you for responding!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.