Hi, I’m looking to integrate the UserPro membership plugin into my site. I will be using the reboot theme. I want to use the UserPro login/registration forms rather than the SP ones. How can I change the hyperlink for these buttons? I dug around a bit but couldn’t find the code.
I’m also contemplating removing these buttons and just using the login/register buttons on another part of my site, since SP should sync everything up fine with wordpress’ user membership too correct? How can I remove both these buttons from the header in that case?
see these for how to replace the urls to yours:
to remove, just remove those template function calls from your sp theme… they are in the spHead.php template file… as always, before editing a theme, we suggest making a child theme or creating your own theme…
This post answers the topic
Excellent, thanks for the fast response!!
I’ve removed the login/register buttons by commenting out the code in spHeadDesktop.php (in a child theme). When I view the site on my iPhone there is the Actions drop down box for Log In, Register and Search. I can’t find where to remove this code…
As you would have found the spHeadDesktop.php file in the ‘desktop’ folder of the theme so there is an spHeadMobile.php in an equivalent ‘mobile’ folder. You just need to give it the same treatment.
Thanks, I had done that actually, cache must not have been clearing properly, tried another browser and it was refreshed. Cheers!
Good stuff, thanks for letting us know!
Hi, I decided to add the login URL back into my site button, but I can’t get it to display correctly using the API. I’m a bit confused about the quote characters and the argument options, do they need to be nested? If someone could clarify would be great!
With this code the forum doesn’t load in the page:
sp_LogInOutButton(‘tagClass=spButton spRight’,’logInLink’=’http://panorev.com/profile/login‘,’logOutLink’=’http://panorev.com/profile/logout’, __sp(‘Log In’), __sp(‘Log Out’), __sp(‘Log in and log out’));
sp_LogInOutButton(‘tagClass=spButton spRight’,’logInLink=http://panorev.com/profile/login’,’logOutLink=http://panorev.com/profile/logout’, __sp(‘Log In’), __sp(‘Log Out’), __sp(‘Log in and log out’));
It would be clearer if you provided an example on the Codex. Thanks
There IS an example in the codex just here. However – I do see that this particular example only passes one argument.
The method that ALL Simple:Press display functions use to pass arguments is the same as the method that WordPress uses. That is that all the function arguments are sent as one, long string of text using name=value pairs with each pair separated by an ampersand.
So – using your own code from above that would be sent as:
sp_LogInOutButton('tagClass=spButton spRight&logInLink=http://panorev.com/profile/login&logOutLink=http://panorev.com/profile/logout', __sp('Log In'), __sp('Log Out'), __sp('Log in and log out'));
Hope that helps.