By damir on
Hi,
Im using twitter bootstrap (for the theme)
I want to add html tag (<i class="icon-ok"></i>) on my submit button.
How to do that?
Thanks.
Hi,
Im using twitter bootstrap (for the theme)
I want to add html tag (<i class="icon-ok"></i>) on my submit button.
How to do that?
Thanks.
Comments
=-=
I'd start here: http://drupal.stackexchange.com/questions/4008/how-do-i-alter-the-submis... & http://api.drupal.org/api/drupal/developer%21topics%21forms_api_referenc...
assuming the submit button is
assuming the submit button is generated by theme_button or theme_submit, you can override them in your template.php by invoking yourthemename_button or yourthemename_submit and place your custom html tags there (copy paste the original function and add the tag into it)
or you can do it in css way by adding :after or :before, set the button into position:relative and the :after or :before with position: absolute and position it as you like.
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com
Hi, Thank you for your
Hi,
Thank you for your answer.
Where can I find the original function (if I used mythemename_submit)?
Damir, Did you ever solve
Damir,
Did you ever solve this? I need to do exactly the same thing. Thanks kevin