Jump to content

{SOLVED} Making "Forgot Password" Into Button


Guest

Recommended Posts

Hey guys,

 

Trying to make the forgot your password link into a button, and this is what I changed the code to in in authentication.tpl;

 

<p class="lost_password"><a href="{$link->getPageLink('password')}"><button class="btn" type="submit">{l s='Forgot your password?'}</button></a></p>

 

Any idea why this isn't working?

 

I also tried;

 

<button class="btn" type="submit" value="{l s='Forgot your password?'}">Forgot Your Password</button>

 

I got login working with my button tags using this;

 

<button class="btn" type="submit" name="SubmitLogin" value="{l s='Log in'}">Log In</button>

 

 

Any ideas? I would really appreciate it. :)

 

Thanks in advance,

 

roflmyeggo

Edited by Guest (see edit history)
Link to comment
Share on other sites

Why not just

<p class="lost_password"><a class="button" href="[color=#343943]{$link->getPageLink('password')}[/color]">[color=#343943]{l s='Forgot your password?'}[/color]</a></p>

and here class button is from default theme and if you have other class like btn use that.

Link to comment
Share on other sites

Ah, thanks razaro. Very much appreciated. Not sure why I didn't think to just apply the class to the link.

 

Appreciate it man!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...