Entity icon in lightbox

Hi everyone,

How can I make entity icon to be open in elgg-lightbox when use click on it ?

I try to do it by doing as followed but none of the following code is working.

elgg_view_entity_icon($entity, 'medium', ['link_class' => 'elgg-lightbox'])

elgg_view_entity_icon($entity, 'medium', ['img_class' => 'elgg-lightbox'])

elgg_view_entity_icon($entity, 'medium', ['class' => 'elgg-lightbox'])

Regards,

 

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking