Ready to get started?Download WordPress


How to adjust form placement? (6 posts)

  1. rolldeep
    Posted 7 years ago #

    I've got a WordPress contact form here I'd like in the centre of my page, it's on the left and I'm not sure what I need to add/edit.

    the form can be downloaded here http://www.roge.ru/new/wp-content/f...ontact-form.zip

  2. Bodhipaksa
    Posted 7 years ago #

    It's hard to say what's best without seeing your site (and I'm not going to install the plugin one my site just to see what it looks like), but one solution would be to put the form in a div with a fixed width and set the left and right margins to auto (thus centering the div).

  3. vinit
    Posted 7 years ago #

    use &nbsp code. i hvnt seen ur form but it must be having name, email boxes. just put this code next to "Name" etc. u'll hv to put it many times to get the form at center.

  4. Root
    Posted 7 years ago #

    OMG no. Please do not put   all over the place. We gave that up in 1995.

  5. rolldeep
    Posted 7 years ago #

    None of what you mentioned worked, here is the part I think I need to edit.

    /* Declare strings that change depending on input. This also resets them so errors clear on resubmission. */
    $wpcf_strings = array(
    	'name' => '<div class="contactright"><input  class="textfield" type="text" name="wpcf_your_name" id="wpcf_your_name" size="30" maxlength="50" value="' . $_POST['wpcf_your_name'] . '" /></div>',
    	'email' => '<div class="contactright"><input  class="textfield" type="text" name="wpcf_email" id="wpcf_email" size="30" maxlength="50" value="' . $_POST['wpcf_email'] . '" /></div>',
    	'msg' => '<br/><textarea  class="textfield" name="wpcf_msg" id="wpcf_msg" cols="35" rows="8" >' . $_POST['wpcf_msg'] . '</textarea>',
    	'error' => '');
  6. Bodhipaksa
    Posted 7 years ago #

    First, what does it mean that something didn't work? We don't know what you did and what the results are.

    Second, is your site some kind of secret? It would be really handy to see the page and your stylesheet.

    Third, failing that, what are the specifications in your stylesheet for the divs listed above? Have you tried changing them? What were the results?

Topic Closed

This topic has been closed to new replies.

About this Topic