Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 775
  • Last Modified:

Wordpress comments template

Hi,

I am trying to reorder the input fields and labels on the comments-template.php in the wordpress include folder. Basically i am trying to get the labels to appear to the right hand side of the input fields not the left on the following page:

http://www.bluebean.org.uk/sites/tracynewman/accountancy-advise.html

For some reason, when i view this page in chrome on my server, there are no input text fields, only a text area field. But when i view this using adobe labs, i get three text fields appear above the comment text area. Do these text fields need to be there?

I have attached my comment-template.php file so you can see what i currently have.

Many thanks,

Andrew
comment-template.php
0
Andy6350
Asked:
Andy6350
  • 3
  • 2
1 Solution
 
Jason C. LevineNo oneCommented:
Two different issues:

1) Moving the labels.  You don't need to mess with the template, this is a CSS issue only.

In styles.css you need to float the labels right (look around line 1363):

#respond label {
    color: #FFFFFF;
    float: right; <------------------ ADD THIS LINE
    font-size: 12px;
}

2) Fields.  If you are logged in, Wordpress hides the name, email, web site fields automatically since that information is part of the user profile.  If you are logged out you will see all of the fields.
0
 
Andy6350Author Commented:
1) the problem with floating them is they dont appear to the right of the input fields, sorry if i havent explained well enough, the desired effect i am looking for is what you can see on the bottom of the follow page:

http://www.w2m.co.uk/blog/new-website-for-treble-ace-with-ticket-ordering-facility-content-control.html

hope this helps.

2) makes sense, yes
0
 
Jason C. LevineNo oneCommented:
"the problem with floating them is they dont appear to the right of the input fields,"

They will if you do it correctly?  I tested this using Firebug and it works fine.  You may also have to float the input tags left to get it to work in all browsers.

Floaters
0
 
Andy6350Author Commented:
sorted it by modifying the php file
0
 
Andy6350Author Commented:
sorted it by modifying the php file
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now