Support » Plugin: Gravity Fieldset for Gravity Forms » Please remove extra empty in fieldset

  • Resolved mkormendy

    (@mkormendy)


    There’s an extra empty <li></i> being created immediately at the beginning of the fieldset.

    If there’s padding, margin or dimensions styling on the sibling <li>‘s in that set, then the first <li></li> creates a blank gap.

    Of course I could just use li:first-child {display: none;} however it’s adding even more code on top of the extra unused tag – not very optimal at all.

    I modified the plugin code and removed the <li> </li> components on lines 281 and 286. This seems to have fixed it, but without analyzing the entire plugin code, I won’t know if they’re needed elsewhere (which in my test-case, hasn’t affected my layouts).

    https://wordpress.org/plugins/gravity-fieldset-for-gravity-forms/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author HarroH

    (@harroh)

    Hi mkormendy,

    Thanks for your feedback. We will look into this for our next release. We are now ‘hacking’ the structure of GF in order to make fieldsets possible but we are looking into GF itself in order to make it more native and output proper HTML. We will take a look at the spare list item as well.

    Cheers, Harro

    Plugin Author HarroH

    (@harroh)

    Hi Mkormendy,

    We just updated the plugin and the HTML output is much neater then before. Therefore we also removed the empty li’s and ul’s. Hope you like the new output.

    Cheers, Harro

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Please remove extra empty in fieldset’ is closed to new replies.