WordPress.org

Ready to get started?Download WordPress

Forums

Nextend Image Magnifier
[resolved] Adding Lightbox or other Popup (4 posts)

  1. beatfreqs
    Member
    Posted 1 year ago #

    Hi,

    I am trying to add a lightbox or other popup style for the click event.
    I can't get anything to function, and no matter what, I only get the attachment url image to display on click. I have the js/css to may pages for the light box I want to use, and added a rel='lightbox' to your plugin's php in this section:

    if($click == 0){
    
      	echo '<a href="'.$link_url.'" rel="lightbox">';
    
      }

    My shortcode in PHP looks like this:
    [magny image="'.$getAttachURL[0].'" title="" description="" align="center" click="0" link_url="'.$getAttachURL[0].'" scroll_zoom="1" scroll_size="1" small_image="" canvas_mode="1" maxwidth="500px" zoom="1" height="100%" dia="200px" skin="new-im-frame-simple,new-title-off,new-description-off,new-slider-off,new-im-magnifier-simple new-im-magnifier-square" ]
    Adding and removing the data-link_url doesn't help. How can I make the click event a lightbox?

    http://wordpress.org/extend/plugins/nextend-image-magnifier/

  2. beatfreqs
    Member
    Posted 1 year ago #

    Nevermind, figured it out. Will post code if anyone needs it.

  3. kaay
    Member
    Posted 1 year ago #

    hi could you please share it how did you do it? hanks

  4. beatfreqs
    Member
    Posted 1 year ago #

    The above code works with the plugin called "Shutter Reloaded."
    The file I edited in the plugin was 'nextend-image-magnifier.php,' line 84, i think.

    I never figured it out fully, just moved on to a plugin that worked with the rel="lightbox" tag.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic