• Resolved deepee

    (@deepee)


    I use Lucky Orange it i requires a class adding to the contact form to record the text. Where would I add it?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author supsystic

    (@supsysticcom)

    Hello!
    You need to do the following steps –

    1. Go to CSS/HTML Code tab of plugin -> HTML editor.
    2. Replace the code –

    [form_start]
    [fields]
    [form_end]

    with this –

    <div class="REQUIRE_CLASS_NAME">
    [form_start]
    [fields]
    [form_end]
    </div>

    In this case you will be able to specify the contact form in styles as .REQUIRE_CLASS_NAME form {}.

    Or if you need to change class directly in the form – you need to add it in plugin files.

    1. Go to \wp-content\plugins\contact-form-by-supsystic\modules\forms\views
    2. Open the “forms.php” file.
    3. Find this code –
    return '<form class="csfForm" method="post" action="'. CFS_SITE_URL. '">';

    and replace it with –

    return '<form class="csfForm REQUIRE_CLASS_NAME" method="post" action="'. CFS_SITE_URL. '">';

    Please try these variants and inform us about the result.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add a class to contact form’ is closed to new replies.