Jetpack by WordPress.com
[resolved] Carousel pic comments (2 posts)

  1. gordo019
    Posted 3 years ago #

    Would someone from the jetpack team see to it that a future version of the jetpack carousel module has the option of disabling pic comments in the carousel? Including all those Ajax calls for pic comments that mostly don't exist. Just want to be able to config the carousel to show the pics of the gallery, their text captions (if they exist), and next/previous buttons to move through the gallery. All the js and css hacks to accomplish comment removal is a mess! Pic comments should be a carousel option preference. Please keep the carousel displaying nicely for desktop, tablet, and smartphone responsiveness too.


  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 3 years ago #

    You can disable comments on the carousel view by adding the following code to your theme's functions.php file:

    function tweakjp_rm_comments_att( $open, $post_id ) {
        $post = get_post( $post_id );
        if( $post->post_type == 'attachment' ) {
            return false;
        return $open;
    add_filter( 'comments_open', 'tweakjp_rm_comments_att', 10 , 2 );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic