Hi Brajesh,
I’ve installed Ajax Registration and it looks good.
I only want to use it for logging in right now.
My top menu requires a normal html link in order to work. I.e. it is not a WordPress Menu item.
How do I write a normal html link so that it only pops open the Log In? I don’t want the option to Register or Reset password to appear in the modal.
I made a link with the modal working, but it also showed the Register and Reset Password links (I have them disabled in the plugin’s settings). Also, I made my link in a WordPress Menu item but I can’t place it in my theme using that method (not in the location I want), it has to be an html link.
Secondarily, how would I write a normal html link to log a User out of WordPress? It must be simple but I can’t work it out 🙂
Many thanks,
MikeHi Mike,
You can use any html link for the login trigger. Add a css class or id to the element and put it in the BP Ajax Registration Login selectors setting.Also, I am not sure of the plugin showing registration box.
Here is what I see when I disable registration/Forget password
https://i.imgur.com/cNTIJ7G.png
Please make sure you have the Ajax Registration settings updated.
Regards
BrajeshHI Brajesh,
I have the Ajax Registration settings updated but I still see the registration and password reset fields.
Have a look:
https://technicskeyboard.com/test-page/
It says “Log In” on the black menu.
Now (in Opera) it is going behind my menu. I think it was ok in Chrome earlier. But you see it has register box?
Perhaps Socializer is interfering? (but I have registration turned off in that too).
Many thanks,
MikeHi Mike,
Please edit the nav item and remove the ‘bp-signup’ class from it.Please add ‘bp-login’ to it. The please visit Settings->BuddyPress Ajax Registration->Login and add it like ‘, .bp-login a’
That should fix it.
Regards
BrajeshHi Brajesh,
I put bp-login in the menu.
Next in Settings->BuddyPress Ajax Registration->Login I added ‘, .bp-login a’, didn’t work. Then I added ‘, .bp-login, .bp-login a’ but it’s not working. Maybe my theme is breaking it.
Thanks,
MikePS I should mention, I was trying to get it to work today and I did exactly what you described but it didn’t work. Then I put bp-signup in the menu, to be the same as your documents because I thought I better start from there. Then it worked (but with the register popup), so I posted to you. Just for you to know I’m not lazy lol. No, seriously, I’m just telling you in case it helps to understand what’s wrong.
Hi MIke,
Thank you for sharing the details.
1. You have added the class to the menu item correctly and I can check that.
2. As suggested, you need to add the following
.bp-login a
after putting a comma after the existing selectors in the “Login” panel selector option. If you do it. It will work.
Currently, It is not there,
Regards
BrajeshHi Brajesh,
No I tried that earlier and again after you told me, it’s not working.
Please see this page with picture.
https://technicskeyboard.com/test-page/
many thanks,
Mike
You must be logged in to reply to this topic.