Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1048801

    Hi
    After updating WordPress (5.0.2) and Enfold (to 4.5.2) the lightbox doesn’t work anymore.
    I’ve the following in the functions.php of my child-theme (but there is no difference with or without):

    add_filter( ‘avf_avia_builder_masonry_lightbox_img_size’, ‘enfold_customization_change_popup_size’ );
    function enfold_customization_change_popup_size( $size ) {
    return ‘fullsize’;
    }

    Strange, cause I’ve other installations with the same versions and they’re working pproperly …

    #1048832

    Hi webmanu

    This is very likely due to an outdated header.php file you are using in your child theme.
    I would recommend you replace it with the one from your parent theme and obivously include your modifications from your file in there as well and upload it to your child theme directory (keep the old header.php file just in case and as a backup).

    This should solve your issue and open the images properly in a lightbox again. The logic of how the lightbox works has been changed recently and this has been done within this file so if you have it in your child theme, these changes are not pulled – that’s why.

    Cheers and I hope this helps
    Michael

    #1048836

    Hi michaelH
    your are MY HERO!
    Merry x-mas and a happy new year!

    #1048838

    No worries – glad it worked and same to you ;)

    #1049093

    Hi webmanu,

    Glad to hear that it’s resolved :)
    Thanks for using Enfold!

    @michaelH, thanks for helping out :)

    Merry Christmas and Happy New Year to you both :)

    Best regards,
    Nikko

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Lightbox doesn't work anymore after update’ is closed to new replies.