WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Turn off comment and view full size in Carousel (4 posts)

  1. lindebjerg
    Member
    Posted 2 years ago #

    Would it be possible to turn off the comment function and the view full size link when I use the image carousel?

    http://wordpress.org/extend/plugins/jetpack/

  2. germanw
    Member
    Posted 2 years ago #

    Not sure about full size but you can disable comments by adding the following code to functions.php

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

    I found this on: http://www.wpbeginner.com/wp-tutorials/how-to-disable-comments-on-wordpress-media-attachments/

  3. Tim Moore
    Moderator
    Plugin Author

    Posted 2 years ago #

    It is not possible to turn off the View Full Size link in Carousel.

  4. Aristodis
    Member
    Posted 1 year ago #

    Symply add

    display: none;
    to
    .jp-carousel-image-meta {
    add here
    other lines...
    other lines...
    other lines...
    }
    in jetpack-carousel.css (jetpack/modules/carousel)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.