Support Forum

remove the login button

EM ERIC MALALEL
ERIC MALALEL
Member

I manage the login process using CAS Jasig, a Web SSO solution which integrates well with WP.

Is it possible to remove the “login” button from SP?

5 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

You need to edit the appropriate SP theme template file. In this case spHead.php. You can use the SP theme editor for this.

SImply locate the call to the sp_LoginInOut() function and remove or comment it out.

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/)

EM ERIC MALALEL
ERIC MALALEL
Member

could not find this function, but commented out this 3 lines in spHead.php, and it looks like it works:

# sp_LogInOutButton(‘tagClass=spButton spRight’, __sp(‘Log In’), __sp(‘Log Out’), __sp(‘Log in and log out’));
# sp_RegisterButton(‘tagClass=spButton spRight’, __sp(‘Register’), __sp(‘Register’));
# sp_ProfileEditButton(‘tagClass=spButton spRight’, __sp(‘Profile’), __sp(‘Edit your profile’));

Please confirm this is correct and there will be no unwanted side effects.

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry – left the ‘button’ off of the function name.
Well yes – that removes the login, registration and SP profile. Are you sure about the profile removal? That will atop people selecting what editor they prefer, setting their timezone etc…?
But yes – removing them does not damage.