I am using a gallery when i click on gallery . gallery pop-up is working good , but when I am using caption on mouse hover link is not working .
This is attachment link

 $image_output = wc_gallery_get_attachment_link( $id, $size, true, false, false, 'large', false, $link_target );

I want to give gallery pup-up link with this caption div

 if ( $showcaptions && trim($attachment->post_excerpt) ) {
                    $output .= "
                        <div class='wp-caption-text gallery-caption'>
                            <{$captiontype}>
                            " . wptexturize($attachment->post_excerpt ,$image_output). "
                            </{$captiontype}>
                        </div>";
                }

Read more here: I want try to give attachment link my pop-up caption


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: