CSS Class Name for Action Hook fields

This topic contains 4 reply and 2 voices, and was last updated by towhid 9 years, 1 month ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
March 2, 2015 at 11:15 pm 38015
towhid Hello - When you specify a CSS Class Name it is applied to the
  • element containing the label and form element
    s. Action Hook fields are responsible for creating their own
    s for the label and form element - but the
  • is generated by WPUF. This means that I cannot apply a class name to one of my Action Hook fields like I can other fields in the form - on the
  • tag. Am I missing something? Would it be possible to add a CSS Class Name option for Action Hook fields? Thanks!
  • March 2, 2015 at 11:21 pm 38016
    Jean Jean

    Sorry – I didn’t realize it would strip out all my tags. Here is a cleaner version.

    Hello –

    Most WPUF fields have a CSS Class Name option which applies that class to the <li> element containing the label and form element <div>s. Action Hook fields are responsible for creating their own <div>s for the label and form element – but the <li> is generated by WPUF. This means that I cannot apply a class name to one of my Action Hook fields like I can other fields in the form – on the <li> tag.

    Am I missing something? Would it be possible to add a CSS Class Name option for Action Hook fields?

    Thanks!

    March 4, 2015 at 4:17 pm 38188
    towhid towhid

    Hello Jean,

    Please read this documentation about action hook – http://docs.wedevs.com/using-action-hook-field/. Hope you will get a clear idea how action hook works.

    Thank You 🙂

    March 4, 2015 at 6:01 pm 38200
    Jean Jean

    Hi – I have read that documentation, and my action hooks are working great. I am asking how to add a CSS class to the <li> element that contains the <div> described in that documentation. It seems to me that the only way to do it is by you folks changing the plugin to allow a CSS Class Name field in the Form Editor for Action Hook fields, just like there is for all the other field types.

    Please tell me if there is another way.

    Thank you

    March 4, 2015 at 6:45 pm 38204
    towhid towhid

    Hello Jean,

    Apparently we do not have this feature. But what you can do is that you can change the core code of WPUF plugin, particularly for “div” code, to set “li” with class name in there.

    Thank You 🙂

    Viewing 4 Posts - 1 through 4 (of 4 total)