Hi there,
I am changing the link on the submit listing button to direct users directly to the register page as we have a slightly different flow on our homepage. However, I seem to have a problem with including the redirect to the submit-listing page on the register modal, could you direct me to the right direction here please?
Here is what I have done in a child theme on listing-submit-link.php. This works, but I need it to include the redirect that usually the login page has after clicking the button. Thanks!
Please note that your code refers to the register modal, but it is the same for all users. That is, the modal will not detect where to redirect the user next, because it is not part of the submit process. As a workaround, you can overwrite the User Login template in HivePress > Templates using this documentation How to customize templates - HivePress Help Center, and add a Register Form block instead of Login Form, then the first step of the submit process will be registration.
I figured it out after picking the template in the page settings it works. Thanks!
The only thing left to ask is how I can make the login text on the bottom work so that if a person clicks login and logs in via the login modal to redirect them to the submit listing page?
This is how it should work. If your URL is /account/login?redirect=… (if there is a redirect parameter there), then the login and register form will forward you to the redirect URL.