Viewing 1 replies (of 1 total)
  • Plugin Contributor ankitgadertcampcom

    (@ankitgadertcampcom)

    You can add following code to theme’s functions.php file.

    function bbp_img_without_title( $attachments ) { ?>
    
    	<div class="shr-reply-attach"><?php
    
    		foreach( $attachments as $attachment ) {
    			$attach = wp_get_attachment_image_src( $attachment->ID , 'thumbnail' );
    			$attach_full  = wp_get_attachment_image_src( $attachment->ID, 'full' );
    			?>
    			<a href="<?php echo $attach_full[0]; ?>" class="thickbox bbp-uploader-thumb">
    				<img src="<?php echo $attach[0] ?>" alt="<?php echo $attachment->post_title; ?>" />
    			</a><?php
    		} ?>
    
    	</div><?php
    
    }
    add_action( 'bbp_uploader_attachments_markup', 'bbp_img_without_title' );

    Hope this helps.

    Regards,
    Ankit

Viewing 1 replies (of 1 total)
  • The topic ‘how to remove only file name?’ is closed to new replies.