Forums

[resolved] How can I remove the frame around the form (9 posts)

  1. chouf
    Member
    Posted 4 years ago #

    Hi there,

    Thanks for the form, it's simple and efficient; just what I needed. Nevertheless, I'd like to modify a little bit the aspect of it.
    Do you know how I can remove the frame and text "Contact form" displayed around the form?

  2. mrkingid
    Member
    Posted 4 years ago #


  3. Scott Offord
    Member
    Posted 4 years ago #

    open wp-contactform.php and change this line (around line 212) from:

    <fieldset><legend> '.__('Contact Form','cfiii').'</legend><div><em>* '.__('Required fields','cfiii').'</em>' . $wpcf_strings['error'] . '</div>

    To:

    <legend> '.__('','cfiii').'</legend><div><em>* '.__('Required fields','cfiii').'</em>' . $wpcf_strings['error'] . '</div>

    And this line (around line 222):

    </fieldset></form>');

    To:

    </form>');

    I hope this helps. Scott

  4. chouf
    Member
    Posted 4 years ago #

    Thanks a bunch Scott, it worked like a charm.
    I know have

    line 212:
    <legend> '.__('','cfiii').'</legend><div><em>* '.__('Required fields','cfiii').'</em>' . $wpcf_strings['error'] . '</div>

    and line 222:

    </form>');

    for the moment, result can be seen at http://chouf.be/wordpress/?page_id=3 or later, at http://www.chouf.be

    Thanks a million and happy xmas

  5. Doktor
    Member
    Posted 4 years ago #

    Hi!

    When I use this hack, I get the following message:

    Project-Id-Version:
    POT-Creation-Date:
    PO-Revision-Date: 2007-12-03 13:26+0100
    Last-Translator: Björn Fischer
    Language-Team:
    MIME-Version: 1.0
    Content-Type: text/plain; charset=utf-8
    Content-Transfer-Encoding: 8bit

    The reason is, that I'm using a German Language Pack for the WP Contact Form III PlugIn. Does anybody know, how to hide this?

  6. Doktor
    Member
    Posted 4 years ago #

    Nobody? :(

  7. KKWangen
    Member
    Posted 4 years ago #

    You should rather open contactform.css and add

    #contactform fieldset { border:none }
    #contactform legend { display:none }
  8. Christiaan
    Member
    Posted 4 years ago #

    When I used the hack I got this when I tried to load my website:
    Parse error: syntax error, unexpected '<' in /home/username/domain.com/wp-content/plugins/wp-contact-form-iii/wp-contactform.php on line 213

  9. Christiaan
    Member
    Posted 4 years ago #

    My bad. fixed now.

Topic Closed

This topic has been closed to new replies.

About this Topic