I’m trying to redirect the login page and the registration default pages to my own pages. I found these snippets on Github but they are not working. I’ve managed to make other snippets work but not these.
Yes, these snippets are applied only if there’s no current redirect (e.g. no intended action made by user prior to the login form appearing). You can try removing this condition but this may break the action flows:
I try this but it doesn’t work when I try to go to the edit listings page or add listing page (need to be logged in to see that) while being logged ut. Do you have any other advice?
Please note that the snippets above do not redirect the initial pages with forms but only after you press the submit button (i.e., when the form has reached a successful status).
I see. I’m wondering if there’s a way of preventing the plug-in to redirect you to the hivepress login and instead redirect you to a custom login page slug?
Yes, it’s possible but this would require customizations, if you’re familiar with coding please try using the template_redirect hook to catch the “/account/login” URL and redirect it. Please note that sometimes the login form can be opened in the modal window without a redirect. Also, replacing the built-in login redirect may disrupt the Add Listing process (currently the built-in form redirects users to the next step on success).
I’m not… unfortunately. Can you give me a hand if it’s something quickly done? Otherwise I understand completely that I need to hire someone to do it for me.
Sorry for the inconvenience, but customization is beyond our support scope - it includes fixing bugs and guidance about the available features Support Policy | HivePress
If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work https://fvrr.co/32e7LvY