Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/faaee81b375bffc8b024 to your computer and use it in GitHub Desktop.
Save billerickson/faaee81b375bffc8b024 to your computer and use it in GitHub Desktop.
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="one-half comment-form-right" />' );
$('.comment-form').prepend( '<div class="one-half first comment-form-left" />' );
$('.comment-form-author').appendTo( '.comment-form-left' );
$('.comment-form-email').appendTo( '.comment-form-left' );
$('.comment-form-url').appendTo( '.comment-form-left' );
$('.comment-form-comment').appendTo( '.comment-form-right' );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment