How to disable secondary button in modal login – UserPro Forums https://forum.userproplugin.com/forums/topic/how-to-disable-secondary-button-in-modal-login/feed/ Mon, 06 May 2024 12:26:09 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/how-to-disable-secondary-button-in-modal-login/#post-39441 <![CDATA[How to disable secondary button in modal login]]> https://forum.userproplugin.com/forums/topic/how-to-disable-secondary-button-in-modal-login/#post-39441 Fri, 30 May 2014 08:06:02 +0000 Sebastian Berger Hi!

Thanks for developing this great plugin!

My questions:

The modal login works fine. But how can I modify the functions around modal login?
I want to hide the secondary button in all login functions, because not every visitor is allowed to register for my site.
Where can I disable this?

Thanks for support! =)

]]>
https://forum.userproplugin.com/forums/topic/how-to-disable-secondary-button-in-modal-login/#post-39658 <![CDATA[Reply To: How to disable secondary button in modal login]]> https://forum.userproplugin.com/forums/topic/how-to-disable-secondary-button-in-modal-login/#post-39658 Mon, 02 Jun 2014 16:39:50 +0000 Adi simple delete this in userpro/templates/login.php

<?php if ($args[“{$template}_button_secondary”]) { ?>
<input type=”button” value=”<?php echo $args[“{$template}_button_secondary”]; ?>” class=”userpro-button secondary” data-template=”<?php echo $args[“{$template}_button_action”]; ?>” />
<?php } ?>

you can create a folder in your themes directory “userpro” with a subfolder “templates” an put the modified file login.php there. in this way it will not get lost in case of updates

]]>
https://forum.userproplugin.com/forums/topic/how-to-disable-secondary-button-in-modal-login/#post-40112 <![CDATA[Reply To: How to disable secondary button in modal login]]> https://forum.userproplugin.com/forums/topic/how-to-disable-secondary-button-in-modal-login/#post-40112 Wed, 04 Jun 2014 16:36:47 +0000 Sebastian Berger Works perfect! Thank you very much!

]]>