Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

[SOLVED] Comment form styling problem


  #1  
Old Feb 18, 2011, 07:18 AM
Innocent's Avatar
Innocent
 
92 posts · Jan 2011
WP 3.4.2 Atahualpa 3.7.9
Hi!

I managed comment form to appear in center of my page/posts, but I have a problem with lines, it is centering the strange way.

I would like to have input space and text bellow or above it, not in line because it doesn't look good.
And I don't know where and how to adjust it.

Help appreciated

P.S.
I am running Atahualpa and Wordpres' latest release.

Last edited by Innocent; Feb 19, 2011 at 03:40 PM.
  #2  
Old Feb 18, 2011, 07:39 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you are talking about the comment form and the fact that the input area comes before the label (like 'Name (required)'), that is caused by the CSS Insert
HTML Code:
form#commentform {
   align:center;
If you want to have the label - 'Name (required)' - be above the input area, you will have to edit comment.php and make a change there.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 19, 2011, 03:39 PM
Innocent's Avatar
Innocent
 
92 posts · Jan 2011
WP 3.4.2 Atahualpa 3.7.9
If anybody ever needs this, here's the code to change in comments.php:

replace this:

Code:
'author' => '<p><input class="text author" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' tabindex="1" />' . 
				'&nbsp;&nbsp;<label for="author"><strong>' . __( 'Name' ) . '</strong> ' . ( $req ? __('(required)','atahualpa') : '' ) . '</label></p>',
	'email'  => '<p><input class="text email" id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . '  tabindex="2" />' . 
				'&nbsp;&nbsp;<label for="email"><strong>' . __( 'Email' ) . '</strong> ' . ( $req ? __('(will not be published) (required)','atahualpa') : '' ) . '</label></p>',
	'url'    => '<p><input class="text url" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"  tabindex="3" />' . 
				'&nbsp;&nbsp;<label for="url">' . __( 'Website' ) . '</label></p>'
with this:
Code:
'author' => '<p><input class="text author" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' tabindex="1" /></p>' . 
				'<p>&nbsp;&nbsp;<label for="author"><strong>' . __( 'Name' ) . '</strong> ' . ( $req ? __('(required)','atahualpa') : '' ) . '</label></p>',
	'email'  => '<p><input class="text email" id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . '  tabindex="2" /></p>' . 
				'<p>&nbsp;&nbsp;<label for="email"><strong>' . __( 'Email' ) . '</strong> ' . ( $req ? __('(will not be published) (required)','atahualpa') : '' ) . '</label></p>',
	'url'    => '<p><input class="text url" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"  tabindex="3" /></p>' . 
				'<p>&nbsp;&nbsp;<label for="url">' . __( 'Website' ) . '</label></p>'
P:S:

Thanks, juggledad, for pointing the right direction

Last edited by Innocent; Feb 19, 2011 at 03:51 PM.

Bookmarks

Tags
comment, design, form

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Comment Form Anchor Link adum Comments, trackbacks & pings 11 Dec 9, 2010 07:11 PM
[SOLVED] BUGFIX - 3.4.1-&gt;3.4.6 - Comment form will not show up after first comment on juggledad Comments, trackbacks & pings 49 Jul 29, 2010 06:01 PM
Changing the comment links to send to the comment form johnd28 Comments, trackbacks & pings 5 Jun 15, 2010 02:33 AM
Styling the comments area title font, form field and label font, and form field sizes jkintzele Comments, trackbacks & pings 5 Nov 10, 2009 09:18 AM
Comment form: how do I clear the data from name and email when the form is submitted? blueprairie Comments, trackbacks & pings 3 Sep 15, 2009 05:15 PM


All times are GMT -6. The time now is 09:42 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.