Support » Plugin: Browser Shots » open in a new window

  • Resolved neocreo


    Fantastic plugin – precisely what I wanted. However, since I would like to review certain sites, it would be great to be able to open the links in a new window/tab per auto. Would it be possible to shoe-horn in a target=”_blank” attribute for the shortcode and that the link is changed accordingly?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Was thinking the same thing. A open in new window… thanks 🙂

    +1 +1 Browsershots are typically for external websites, where updates are controlled by somebody else. For ones own site, where same-window links would be standard, it would reduce the need to update duplicate content, I suppose.

    BrowserShots opened in a new Tab/Window would be awsome. Any news here?

    In the browser-shots.php just add the target="_blank" somewhere around line 56:

    // Get screenshot
    		$image_uri = $this->get_shot( $url, $width );
    		if ( !empty( $image_uri ) ) {
    			$image = '<img src="' . $image_uri . '" alt="' . $alt . '" width="' . $width . '" class="alignnone" />';
    			return '<div class="browser-shot"><a target="_blank" href="' . $url . '">' . $image . '</a></div>';

    Outside of the shortcode, there was a function call (in BM_SHOTS) that you could call to get the image URL without all the qualified image tag. The function call was more flexible than the shortcode. The shortcode is nice bit it’s too restrictive. It doesn’t allow for target or class attributes.

    This is a great plugin and I enjoy using it. I hope the next version will have a bit more flexibility build into it. Shortcode for users, function call for developers.


    Thanks, cob-web, that works. Only drawback is that now all links are external.
    I would prefer the option of having external links for external sites and internal links for internal pages.

    Like srumery I am looking forward to the next version.

    Thanks Cob-web 😉

    Good find @srumery!

    Plugin Author Kevin Leary


    Thanks for the help cob-web, your patch will be included in the next release.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘open in a new window’ is closed to new replies.