WP LightBox 2 compatibility
-
If you don’t want to link the image having a target but to open it in the lightbox, in the hw-image-widget/html/hwim-template.php you can change “target” in the line:
if ( $instance['target_option'] == 'other' ) { $a .= ' target="' . esc_attr( $instance['target_name'] ) . '"';
to “rel”:
if ( $instance['target_option'] == 'other' ) { $a .= ' rel="' . esc_attr( $instance['target_name'] ) . '"';
and write the image URL plus lightbox in the widget’s Target>Others option field.
@h?kan Wennerberg: Perhaps you can add an extra field for this? And I hope that’s in your sense.
Greets, Stephan
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WP LightBox 2 compatibility’ is closed to new replies.