Shortcode
Shortcode
FireMobile comes with this shortcode [firebase_otp_login]
.Adding this shortcode to a page will provide you the functionality for getting OTP via phone number.
Just copy the above shortcode and put it into any page that's it your Firemobile plugin is ready to roll.
You can also place it into your code like bellow
<?php echo do_shortcode('[firebase_otp_login]')?>
The shortcode will render something like the attached screenshots
Shortcode Parameters
- 'phone_button_text' => default value 'Send Code'
- 'code_button_text' => default value 'Verify & Login'
- 'phone_toggle_button_text' => default value 'Continue with Phone',
- 'recaptcha' => default value 'invisible', // invisible or normal
You can change the above default values by using the shortcode in given format
[firebase_otp_login phone_button_text="Send me Code" code_button_text="Verify and Login " phone_toggle_button_text="Login" recaptcha="invisible"]
Recaptcha:
You can either show or hide recaptcha using 'invisible' or 'normal' option in the
above shortcode. Recaptcha is must for firebase login
Customization
You can use css code to customize the color, font-size etc.If you want to work on the code then check the below file
php and html code for the shortcode can be found in Shortcodes/FirebaseOTPLogin.php
file. In this file you can change the html
structure or any tag but be careful changing id or structure might cause the plugin to lose it's functionality.
We recommend to override design from the theme using css code. This way you
Can receive future update easily.