Adapting comments template to lazyest gallery

HomeForumsHow-To and TroubleshootingAdapting comments template to lazyest gallery

This topic has 1 voice, contains 5 replies, and was last updated by  Marcel 83 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
Author Posts
Author Posts
22 February 2012 at 13:00 #5326

Paweł

Hi,
first – thanks for your plugin!
But.. I have some problems. When I tried to follow by tutorial I found that my theme doesn’t use comment_form function, but comments_template function. The problem is, that there is now any ‘comment_id_fields();’, so I don’t know where I should put lg_comment_id_fields();.

23 February 2012 at 13:26 #5394

Marcel

what theme do you use?

23 February 2012 at 14:49 #5396

Paweł

Custom Community (Pro).

23 February 2012 at 17:07 #5398

Marcel

OK,
I don’t have that theme, and it would cost me $69,00 to download.
Maybe the free version would offer some clues.
BBL

23 February 2012 at 17:19 #5399

Paweł

Comments modules in that themes are identical :)

24 February 2012 at 9:40 #5402

Marcel

Please add the following code to your (child)theme functions.php:

function my_comment_id_fields() {
  if ( function_exists( 'lg_comment_id_fields' ) )
    lg_comment_id_fields();
}
add_action( 'comment_form', 'my_comment_id_fields');
 
function remove_commentor() {
  global $lg_gallery;
  remove_filter( 'comments_template', array( $lg_gallery->commentor, 'comments_template' ), 10, 1 );
}
add_action( 'lazyest_ready', 'remove_commentor', 20 );
 
Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Adapting comments template to lazyest gallery’ is closed to new replies.

RSS RSS feed for this Topic