PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Adding a specific class to submit button

  1. Hi
    At http://aumentomamas.com (easy, guys ;P)
    The theme comes with a class for a submit button that I'd like to use for the gforms.
    The class is: "button_link btn_pink"
    How can I make the trick, if possible?
    Best regards

    Elena

    Posted 7 years ago on Tuesday January 29, 2013 | Permalink
  2. David Peralty
    Administrator

    If you go to your theme CSS and add gform_button to the classes that provide those styles, then it should do what you want, instead of trying to add a class to the submit button, add the styles to the class already on the submit button.

    Posted 7 years ago on Tuesday January 29, 2013 | Permalink
  3. Hi David
    I know it's not your obligation but if you were soooooo kind ;) to tell me how to do that, I'm not a designer/developer, and I know you're going to tell: well, hire one. Well, I do when I think it's worth the job (I usually ask Robbie), but it seems such a simple thing, but I'm still a dork.
    If after this speech, you want me to beg, I can do that too
    LOL
    ;)
    Thanks!

    e.

    Posted 7 years ago on Friday February 1, 2013 | Permalink
  4. David Peralty
    Administrator

    What I would do is to find the CSS class for btn_pink in style.css and add a comma to it with the css rule that is currently applied to the submit button... so if the rule was:

    btn_pink { background: pink; }

    I would change it to:

    btn_pink, gform_button { background: pink;}

    Now the rule applies both to anything with the class of btn_pink and gform_button. Does that help?

    Posted 7 years ago on Friday February 1, 2013 | Permalink
  5. oh my, David, I forgot to thank you!!

    Posted 6 years ago on Thursday April 18, 2013 | Permalink