Skip to content

Instantly share code, notes, and snippets.

@mkorostoff
Created March 15, 2012 19:31
Show Gist options
  • Save mkorostoff/2046302 to your computer and use it in GitHub Desktop.
Save mkorostoff/2046302 to your computer and use it in GitHub Desktop.
//On photo and video detail pages, we move the comment box into the sidebar
//Check if we're on a video or photo node page
if (jQuery('body.node-type-photo,body.node-type-video').length) {
//If so, select #block-system-main, which contains the main page content and comment form
var comment_mover = jQuery('#block-system-main');
//And move it into the sidebar
jQuery('#block-block-91').after(comment_mover);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment