I need to add a third CSS class to my button.
I tried creating a button with:
$this->content['q_view']['form']['buttons']['mycustombtn'] = array( 'tags' => 'class="my-custom-class', 'label' => 'stuff here' ); but the result is that the class attribute appears twice in the output:
Like:
<input class="my-custom-class" ... type="submit" class="qa-form-light-button qa-form-light-button-mycustombtn" />
Don't tell me I have to declare the class name with the name of the array?!
Thanks for your tips :)
I'd like to answer that but you aren't allowing me to do so :) More info here: http://goo.gl/eLzLJT
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.