Closed grandmasterv closed 10 years ago
Hmm, seems like the function for replacing submit input elements with button elements is broken. The button element wraps the text, which is why the text is being appended.
The markup should be:
<div class="form-actions form-wrapper" id="edit-actions"><button type="submit" id="edit-submit" name="op" value="Log in" class="btn form-submit">Log in</button> </div>
Are you using any modules to alter forms (other than webform), like logintoboggan perhaps?
The function being overridden is 'megatron_button'.
The login modules we are using are Login Destination and Secure Login. I tried disabling each of them and both at the same time. It did not fix the issue. Any other ideas on how I could troubleshoot this?
Thanks!
I think I know how you could alleviate the issue, but it's not a fix to the theme, just your particular installation.
If you just want to clear this up asap, try commenting out the 'megatron_button' function in the Megatron template.php and purge the caches (the theme registry is notoriously difficult to clear).
I'll have to look at those two modules to see if there are any hook_form_alter or similar calls that are overriding the default theme implementation. I'll update the issue when I've taken a look.
No rush to clear this up right now. Looking to launch the site early next year so take your time. I commented out megatron_button function and it renders a single button now.
Thanks for the help!
Issue fixed with commit e096f25920fadfaa875c3da702d8253028684eb3
Confirmed fix! Thanks James!
Hello James,
Here is a pic that shows you the duplicate Log In button bug I'm encountering. The button itself works but there is duplicated text next to it. Its just text with no link.
HTML
CSS properties (not inherited)