• Resolved deeveedee

    (@deeveedee)


    I assigned custom container and customer element classes to my Ninja Form fields so that I can create CSS to modify the field styles. I am able to adjust the style of my field containers using the custom container class, but I cannot adjust the style of my field elements using the custom element class. In order to adjust the style of the elements, I am having to use the Ninja Forms assigned element ID (e.g. #nf-field-54).

    Has anyone been able to use their custom element classes in their style CSS?

    I’m running WordPress 4.8.2, Ninja Forms 3.2.2, PHP 5.6.31.

Viewing 1 replies (of 1 total)
  • Thread Starter deeveedee

    (@deeveedee)

    Custom element classes do work. I must have crafted my CSS incorrectly. Once I retested, all was working fine.

    If you want to create CSS to modify the style of your Ninja Forms fields, define the container and element classes when you create the field and then reference the container and element classes in your CSS. Very cool.

Viewing 1 replies (of 1 total)

The topic ‘Cannot define styles for custom element classes’ is closed to new replies.