How do I add a link in Login Modal to redirect to my own registration page? I want to use the Newspaper login modal and have the \”create account\” link on the login form link to my registration page
Hi Bettina,
That is a good start for my future planning. Thanks for the quick response.
Please, in the same way as in the link you shared please provide me the line of code with syntax and which file/s and line/s to modify to have the “Create Account” button on td-login-modal to send user to a custom registration page https://jackheartblog.org/wp/registration.
Hello!
The file is wp-content\plugins\td-composer\legacy\Newspaper\parts\header\td-login-modal.php 32 line.
Delete the value from the ID attribute from that line and replace it with a href link you want. Please note that you need to add a class to that link with the CSS style of the register button.
.custom-register-button {
width: 100%;
display: block;
padding: 13px;
margin-top: 24px;
font-size: 13px;
text-transform: uppercase;
color: #fff;
cursor: pointer;
position: relative;
}
.custom-register-button:before {
content: '';
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
border: 1px solid #fff;
opacity: 0;
-webkit-transition: opacity 0.2s ease;
transition: opacity 0.2s ease;
}
.custom-register-button:hover:before {
opacity: 0.2;
}
Thank you!
I don’t know where to enter the css you provided. My thinking is that the standard tagdiv “Create Account” button on the user login modal should on click go to hyperlink. I guess this is incorrect. Please explain the need for css, and specifically how that causes the action of clicking the field on the form to go to the registration page.
Hello!
A CSS code can be added in the Live CSS or in Newspaper -> Theme panel -> Custom code -> Custom CSS): https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
The old style is accessed by that ID. Now, if you will delete the values of that ID, then the style will be lost.
This is a workaround of what you need to do!
Thank you!
All is good Bettina. With your help I have gotten this to go the way I desire. Final question, how can I put the link into the functions.php of the child theme so I don’t lose the changes upon update?
-
This reply was modified 3 years by
JackHeartBlog.
Hi Bettina,
I got this working again after the upgrade, at least for the desktop page.
Which file do I need to put the link in for mobile registration modal?
