Ready to get started?Download WordPress


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

  1. gordo019
    Posted 1 year 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
    Happiness Engineer
    Plugin Author

    Posted 1 year 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

About this Topic