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.

How to add own CSS class to the main ?

  1. conpark
    Member

    Hi,

    is it possible to add an own CSS class to the main ul?
    I found a solution for single fields in the docs http://www.gravityhelp.com/documentation/page/Gform_field_css_class but nothing for the wrapping ul

    Posted 11 years ago on Thursday November 1, 2012 | Permalink
  2. On the Advanced tab of the form settings, you can set a custom CSS Class Name. That is applied to the form div. Does that work for you?

    Posted 11 years ago on Thursday November 1, 2012 | Permalink
  3. conpark
    Member

    Unfortunately not. I need the class in the ul-tag, not in the wrapping div.

    Posted 11 years ago on Thursday November 1, 2012 | Permalink
  4. Can you explain what you're trying to do? Maybe we can come up with a work around. There is no way I know of to add a class to the < ul >.

    Posted 11 years ago on Thursday November 1, 2012 | Permalink
  5. conpark
    Member

    I want to change the output from this:

    <ul id="gform_fields_1" class="gform_fields left_label description_below">

    To this:

    <ul id="gform_fields_1" class="gform_fields left_label description_below unstyled">

    The reason is a framework i use.

    Posted 11 years ago on Thursday November 1, 2012 | Permalink
  6. I don't know of a way to add a class to that UL. You can add a class to individual fields or the whole form div, but there is no built in way to add a class to the UL.

    Posted 11 years ago on Thursday November 1, 2012 | Permalink
  7. conpark
    Member

    Hmm, pity. Thanks anyway!

    Posted 11 years ago on Thursday November 1, 2012 | Permalink
  8. Sorry we could not help you more. Normally we can find a work around for situations like these. If you need additional assistance, please let us know.

    Posted 11 years ago on Thursday November 1, 2012 | Permalink
  9. conpark
    Member

    No problem, maybe it's a hook for the future ;)

    Posted 11 years ago on Thursday November 1, 2012 | Permalink

This topic has been resolved and has been closed to new replies.