I am trying to get the gallery lightbox functionality working as this is broken(too bad it wasn’t fixed in v3.16).
I tried editing the parent theme using the fix provided in http://www.swiftideas.com/forums/topic/lightbox-not-loading-2/#post-199618 and it works great.
However, when I try to do the same in the Child’s theme I only get a blank page. What I tried:
Copied gallery.php from dante/swift-framework/page-builder/builder/shortcodes
and pasted it in a created directory dante-child/swift-framework/page-builder/builder/shortcodes
I edited the child gallery.php in line 58:
$main_slider .= "<li><a href='{$image['url']}' class='ilightbox' rel='ilightbox[gallery-{$gallery_id}]'><img src='{$image['url']}' width='{$image['width']}' height='{$image['height']}' alt='{$image['alt']}' /></a>";
changed by:
$main_slider .= "<li><a href='{$image['url']}' class='view' data-rel='ilightbox[gallery-{$gallery_id}]'><img src='{$image['url']}' width='{$image['width']}' height='{$image['height']}' alt='{$image['alt']}' /></a>";
In the Child theme’s function.php I added the following at the bottom:
require_once( get_stylesheet_directory() . 'dante-child/swift-framework/page-builder/builder/shortcodes/gallery.php' );
The lest step results in a blank page.
Thanks in advance