CardanoPress / cardanopress

Cardano & WordPress plugin integration
48 stars 15 forks source link

Custom login process. #14

Open jeshuavegas opened 1 year ago

jeshuavegas commented 1 year ago

Hey guys! Mr. Intangble here.

Congrats for this great plugin!

Since I've created my website with Elementor I wonder if there is a way to allow the user login using a custom modal. Because of elementor's ability to create modals, I thought by doing it in this way:

  1. One create the custom modal using elementor with the most commonly used wallets buttons (at least in my case).
  2. Once the button is positioned on the frontend, the user opens the modal in a certain event, in my case a normal button click event.
  3. When the user selects his desired login wallet, the process continues. By auto opening the wallet to sign etc.

Also, there could be cases that logins could be addressed by simply clicking a normal link. So my final question is if there is a link way/method/hook or something we could use in order to define a custom login process without using CardanoPress's native modal/dialog.

Thanks in advance, team!

jeshuavegas commented 1 year ago

I was reading this https://github.com/CardanoPress/cardanopress/blob/d8f5455324bbd2a48a731853b65c86211bf83199/templates/part/modal-content.php#L16

So, there should be no problem if I use the corresponding alpine's attributes in my button, right? (Cannot test it rn as I'm not home, but I'm reading some code.)