Skip to content

Instantly share code, notes, and snippets.

@SiGaCode
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save SiGaCode/a7d0333e8242f12df713 to your computer and use it in GitHub Desktop.

Select an option

Save SiGaCode/a7d0333e8242f12df713 to your computer and use it in GitHub Desktop.
Display author, email and URL in three columns. NOTE: Does not work with certain antispam plugins! Additional custom CSS needed.
jQuery(document).ready(function($){
// Two Column Comment Form
// Author: Bill Erickson
// URL: http://www.billerickson.net/code/two-column-comment-form/
if( $('.comment-form-author').length ) {
$('.comment-form').prepend( '<div class="ez-only comment-form-full" />' );
$('.comment-form').prepend( '<div class="one-third comment-form-right" />' );
$('.comment-form').prepend( '<div class="one-third comment-form-middle" />' );
$('.comment-form').prepend( '<div class="one-third first comment-form-left" />' );
$('.comment-form-author').appendTo( '.comment-form-left' );
$('.comment-form-email').appendTo( '.comment-form-middle' );
$('.comment-form-url').appendTo( '.comment-form-right' );
$('.comment-form-comment').appendTo( '.comment-form-full' );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment