Archived topic
Integraten of modal login and registration on Frontpage
5 replies · Started by Carsten on October 6, 2020
Hi there, I want to integrate modal login and registration on my Frontpage using a button code:
<a href="#login" class="lrm-login lrm-hide-if-logged-in">login</a>
But I don't know, how to approach this. Can I add this code directly to a button block on my Frontpage, or should I create an element, and in that case, which and how?
Thanks!
Hi there,
yes you could add that to a HTML block ( or as HTML in the code view of the classic editor ) in your front page.
To get the theme button styling simply include the button class in your HTML like so:
<a href="#login" class="button lrm-login lrm-hide-if-logged-in">login</a>
Hi there, thanks for your reply
yes you could add that to a HTML block ( or as HTML in the code view of the classic editor ) in your front page.
Sorry for bringing up a solution myself ;-), but apparently adding the selectors lrm-login, and lrm-register to the buttons css classes seems to be the easiest way?
Haha - yes :) Sorry hadn't had my Coffee this morning lol
Then you are excused, ha ha, it's early, and coffee in the morning is important, luckily I had mine ;-)
Thanks again!
Thank you! Much appreciated.