BuddyBoss Home – Web Support Forums Plugins BuddyBoss Media Gallery to use BuddyBoss Media lightbox

Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #56486
    @keen

    Hi,

    You provided me with a function a while ago to add the relevant classes to gallery images.

    I reported that it didn’t work, but didn’t hear back. You did say you’d incorporate it into your development plans, but that’s hasn’t happened yet.

    Please can you check this and let me know what it needs to change to to work?

    add_action('wp_head', 'add_custom_gallery_class');
    
    function add_custom_gallery_class()
    {
     $script= '<script type="text/javascript">';
     $script.='$(".gallery .gallery-item .gallery-icon a").each(function(i) {
        $(this).attr("id", "media-" + i);
        });
    
    function add_gallery_class() {';
     $script.='jQuery(".gallery .gallery-item .gallery-icon").addClass("bbmedia-grid-item");
               jQuery(".gallery .gallery-item .gallery-icon a").addClass("buddyboss-media-photo-wrap");
               jQuery(".gallery .gallery-item .gallery-icon a img").addClass("buddyboss-media-photo");
               ';
     
     $script.='}
       //window.onload = add_gallery_class;
      jQuery(document).ready(function(){add_gallery_class();});';
     $script.='</script>';
     echo $script;
    }

    Many thanks

    Answers

    #56540

    Anonymous
    @

    Hi @keen, It is added in our suggestion list. I do not have ETA on it.
    Developers are more focused on Group and Video integration first.

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘Gallery to use BuddyBoss Media lightbox’ is closed to new replies.