Home Forums Plugin Support WP User Frontend Pro CSS Class Name for Action Hook fields

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  towhid 4 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #38015

    Jean
    Member
    Post count: 2

    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!

#38016

Jean
Member
Post count: 2

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!

#38188

towhid
Participant
Post count: 4505

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 ๐Ÿ™‚

#38200

Jean
Member
Post count: 2

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

#38204

towhid
Participant
Post count: 4505

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 5 posts - 1 through 5 (of 5 total)

The topic ‘CSS Class Name for Action Hook fields’ is closed to new replies.