Forums / Templates, Stylesheets, Page Layout / Contact Us form Look

Contact Us form Look

Locked

Views: 660

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
28 Aug 2009, 2:10 PM
#1
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Contact Us form Look

Im trying to get rearrange the contact us form, adding a different look to it.

I am having trouble with two areas. I would like the "Email Address" heading of the label to be on top of the input area instead of on the left side. Please see picture for explaination.
The other thing, I would like to relocate the * to next the the "Email Address" instead of right of the input box

tpl_contact_us_default.php

<label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL; ?></label>
<?php echo zen_draw_input_field('email', ($error ? $_POST['email'] : $email), ' size="40" id="email-address"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" /
28 Aug 2009, 2:43 PM
#2
jc8125 avatar

jc8125

Zen Follower

Join Date:
Oct 2007
Posts:
143
Plugin Contributions:
0

Re: Contact Us form Look

try changing it to this:

<label class="inputLabel2" for="email-address"><?php echo ENTRY_EMAIL . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span><br />'; ?></label>
<?php echo zen_draw_input_field('email', ($error ? $_POST['email'] : $email), ' size="40" id="email-address"') ; ?>
<br class="clearBoth" />
28 Aug 2009, 2:52 PM
#3
jc8125 avatar

jc8125

Zen Follower

Join Date:
Oct 2007
Posts:
143
Plugin Contributions:
0

Re: Contact Us form Look

actually, depending on what other changes you've made, you might need to also change:```php
<label class="inputLabel2" for="email-address"><?


to

```php
<label for="email-address"><?

(in the code from the last post)

28 Aug 2009, 3:43 PM
#4
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Re: Contact Us form Look

Thanks for the response, for future reference this worked best for me to control it better.

<label for="email-address"><?php echo ENTRY_EMAIL . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
<div><?php echo zen_draw_input_field('email', ($error ? $_POST['email'] : $email), ' size="40" id="email-address"') ; ?>
<br class="clearBoth" /></div>