• I would like my videos to open in a new tab. Everything works fine for the YouTube videos, but when I try to link a Vimeo video, the URL starts with YouTube causing an error. How do I fix this?

    I think it has something to do with the code on line 216 of youtube-simplegallery/youtube_simplegallery.php.

    // if go to youtube.com
    elseif($youtubeoptions['thickbox'] == 'none') {
    $showgallery .= '<a href="http://www.youtube.com/watch?v='.str_replace('<br />', '', $videoID).'"';
    					if($youtubeoptions['openlinks']) $showgallery .= ' target="_blank"';
    $showgallery .= '>';
    }

    It almost seems like it’s ignoring the external Vimeo link.

    http://wordpress.org/plugins/youtube-simplegallery/

The topic ‘Vimeo open in new tab’ is closed to new replies.