-
Author
-
May 25, 2015 at 10:41 #60022sven_ropParticipant
Hello, I want to set “Clef Two-Factor Authentication” at the Login Popup of the Kleo Theme. Any Idea how I can realise this. Is there any way to do this with shortcodes?
Thx Sven
May 25, 2015 at 16:06 #60047sharmstrModeratorIf they have a shortcode, you can add it to the popup by putting this in your childs function.php file. Be sure to replace clef_shortcode with the actual shortcode for Clef
COPY CODE/* Add clef login to Kleo login modal */ add_action( 'kleo_before_login_form','add_clef_to_login_modal' ); function add_clef_to_login_modal() { do_action('clef_shortcode'); }
Note: I have no idea if it will actually work. I’m merely giving you the code to inject their shortcode into the popup login form.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
September 15, 2015 at 17:22 #77843Ziels’OpdrachtParticipantHi there,
I have just tried the above code and it didn’t work. The issue is that Clef usses another short code ( clef_render_login_button)
So to render the login button for clef the code must be:
COPY CODE/* Add clef login to Kleo login modal */ add_action( 'kleo_before_login_form','add_clef_to_login_modal' ); function add_clef_to_login_modal() { do_action('clef_render_login_button'); }
This however makes the clef button appear in the top left corner of the model (see image). I would prefer that this button shows underneath the user/password area (where the Facebook button also appears) as in the other image.
Do you know how to do this??
Kind regards,
IsidoreAttachments:
You must be logged in to view attached files.September 15, 2015 at 17:24 #77847sharmstrModeratortry changing it to kleo_after_login_form
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
September 15, 2015 at 17:25 #77848sharmstrModeratorI will say that will put it after the remember me button, which actually makes more sense than your sample image.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
September 15, 2015 at 17:28 #77849Ziels’OpdrachtParticipantP.s.:
Another issue that arises when using this methode is that the Clef model (the calling to action of) with the “wave” shows up behind the kleo login model.. which needs to be clicked away in order to use the clef login wave.. a little aestethic issue.
September 15, 2015 at 17:37 #77853Ziels’OpdrachtParticipantYep.. it is now below the remember me.. which is indeed more logic.
Can you tell me how I can center the Clef button?p.s.: thnx for the fast reply!
September 15, 2015 at 17:44 #77860sharmstrModeratorNot without seeing it.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.