Hello
I try to use the Fancy Lightbx (Pro) along with Content Views (Pro) wich offers a lightbox option itself. Of course that doesn't look verry well. There is an option to disable the CV lightbox, but that opens the image in media view (? small version of the image on it's own page) and when I click that image the lightbox works. I asked the CV support about it an get this response...
If you want to use a third-party lightbox, please:
install a lightbox plugin you want
disable the lightbox in the View (not select the lightbox option in Display Settings >> Others >> Open Item In)
Some lightbox plugins will work with images in our grid/list automatically.
Some other lightbox plugins need manually configuration. The most popular configuration is adding HTML attribute to images. If so, please add this code to file functions.php in the theme’s folder:
Code: |
// Content Views Pro - Use third party lightbox
add_filter( 'pt_cv_field_href_attrs', 'cvp_theme_use_another_lightbox', 100, 3 );
function cvp_theme_use_another_lightbox( $custom_attr, $open_in, $oargs = array() ) {
/** For example:
$custom_attr[] = 'rel="lightbox"';
$custom_attr[] = 'data-rel="iLightbox[gallery-1]"';
*/
$custom_attr[] = 'LIGHTBOX_HTML_ATTRIBUTE_HERE';
return $custom_attr;
}
|
The LIGHTBOX_HTML_ATTRIBUTE_HERE depends on the third-party lightbox you use.
But I can't figure that out. I also tried to enter some of CV's class tags to the Fancy Lightbox group selectors list and that didn't work either.
Now I'm lost. Please help (and excuse my spellings)
Georg
Content Views at Wordpress