Hi
I am trying to style the Submit button of the forgot-password form created by the shortcode. I know the appropriate Avada classes, but I don't know how to apply them to this specific button that already has it's own basic class "button-primary".
For the other forms (login, etc) I simply grabbed the form HTML from the Inspector, added the code to a page, wrapping the button in divs with classes and it worked great, but with this one if I do it this way the message appearing after submitting the email (Please check your email) doesn't work as expected, it appears immediately. So I am trying to use the shortcode, but I can't style the button then.
Any clue ?
Thanks
Regrads,
Nicola
If you have somewhere to add your custom javascript for the page you can use this and it will add the classes for the button to get the styling like your theme.
Hi Shane,
Thanks for this solution, but like many other Toolset users I'm not a programmer and although I can play with HTML and CSS I am not confident with JS. I really don't know how to use this code. Is there any chance to make the other solution work ? I mean copy the form code I sent you above and make it work like the original form generated by the shortcode ? I am sure this solution could be interesting to all Toolset user, after all every site needs a forgot password form with a nice button ...
Thanks
Regards,
Nicola
Hello, Shane is out this week on holiday so I'm checking in on his open tickets. I misunderstood the problem and thought you wanted to style the submit button of a CRED Form. Instead, you are trying to style the submit button of the Forgot Password form. Sorry for the misunderstanding. I do not recommend copy + pasting the HTML code of a forgot password form like this. It's prone to break in the future when the software is updated, and it does not add the required script and styles.
I'll be glad to help you set up the custom JavaScript on your site if you are uncomfortable using JavaScript. Please provide login credentials in the private reply fields here, and let me know where I can see the Forgot Password form on your site. I'll make the necessary adjustments and we can review them together.
I am sure this solution could be interesting to all Toolset user, after all every site needs a forgot password form with a nice button ...
That's a great idea, and I agree this would be a good feature. I encourage you to submit your request in our form for software improvements here: https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
I added this code in a "Code block" element in the Avada Fusion Builder. Please see the screenshot here. You should be able to add the same code in a Code Block element on any page that contains the login form shortcode. Let me know if you have questions about that.
Hi Christian,
I managed to style the button applying your JS, thanks, although the button appears for one second in its raw format and then it gets styled by the JS. It's perceivable and looks quite bad to see .... but better than nothing! I hope you find a better solution someday (maybe talking to the WP developers ?) as these forms are an important piece of every WP website.
Thanks
Kind regards,
Nicola