Carousel feature suggestion to show photo credit (with code)
-
It would be great to be able to show the “Credit” metadata value in carousel.
I’ve hacked this in myself, but I think it would be a nice feature.
jetpack-carousel.js
Modify line 1072 from:
if ( 0 === parseFloat(val) || !val.length || -1 === $.inArray( key, [ 'camera', 'aperture', 'shutter_speed', 'focal_length' ] ) )
to
if ( 0 === parseFloat(val) || !val.length || -1 === $.inArray( key, [ 'camera', 'aperture', 'shutter_speed', 'focal_length', 'credit' ] ) )
jetpack-carousel.php
Add new line at line 120
'credit' => __( 'Credit', 'jetpack' ),
Pretty simple. Perhaps a config option to enable or disable this would be good as well.
Thanks
Ben
- The topic ‘Carousel feature suggestion to show photo credit (with code)’ is closed to new replies.