Support Forum

removing simple press's default form

SS Shane Stegeman
Shane Stegeman
Member

Hi Simple Press team

 

Could I please get some help on how I could get rid of the default simple press login form. I am using a login and registration plugin and no longer need anything under ‘Advanced search’ text

 

Second question – How do I remove ‘Welcome back John. Please log in to post” after John visits the forum page a second time (This is even though he is not logged in yet as simple press uses cookies).

 

Thanks heaps

2 Answers

New Answer

SS Shane Stegeman
Shane Stegeman
Member

Sorry forgot the third question – I would like the users to navigate to URL www.abc.com when they click Login and navigate to URL www.def.com when they click Register. How could I provide different URLs for login and register buttons at the top please?

MP Mr Papa
Mr Papa
Member

if you dont want the login form, just remove it from your sp theme… we of course, advise a child theme or custom theme for modifications…

It varies from theme, but you would want to remove this template call:

        sp_LoginForm($loginForm);

from your sp theme, likely in the spHead.php template file…  that wont remove the login/logout button though… you would remove it by this template call

            sp_LogInOutButton(‘tagClass=spButton spRight’, __sp(‘Log In’), __sp(‘Log Out’), __sp(‘Log in and log out’));

which is also where you could change the login and logout links (where they point to)… see:  https://simple-press.com/documentation/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_loginoutbutton/

similarly, you can change where the register button points to: 

            sp_RegisterButton(‘tagClass=spButton spRight’, __sp(‘Register’), __sp(‘Register’));

via this help:  https://simple-press.com/documentation/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_registerbutton/