Looking for a way to use a JS router in WordPress

[ad_1]

Hi everyone,

I’m working on a WordPress project and would like to use Pinecone from AlpineJS to handle routing for specific components in my theme. I’ve tried using add_rewrite_rule, but I haven’t been able to get it to work as expected.

I’m also unable to use hash routing because the browser’s back button doesn’t function properly with that method.

If anyone has done this before or has suggestions on how to set it up properly (especially for routing configurations or a better method than using add_rewrite_rule), I’d really appreciate your insights!

Thanks in advance for your help 🙂

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer