Browser Screenshots

Description

Use the [browser-shot] shortcode to automate the process of taking website screenshots. An icon is also added to the TinyMCE editor to make the shortcode creation process easy.

Shortcode Preview

// basic shot 600px wide
[browser-shot url="http://link-to-website" width="600"]

// shot with link to other website
[browser-shot url="http://link-to-website" width="700" link="http://www.binarymoon.co.uk/"]

// shot with caption (uses default WordPress caption styles)
[browser-shot url="http://link-to-website" width="700"]Add Caption[/browser-shot]

Available Parameters

  • url (required) – the url of the link to shorten
  • width – the width of the image
  • height – the height of the image
  • alt – the image alt text
  • link – where the image links. Left blank it will point to the website where the screenshot is being taken
  • target – browser target. Set to _blank to open in a new window
  • class – add a class to the browsershots wrapper
  • image_class – change the default browsershots image class from alignnone to your chosen class
  • display_link (true or false – default true) to display a link in your screenshot
  • post_links (true or false – default false) to link to the permalink of the post the screenshot is on

Generating Screenshots with code

If you want to create screenshots in a theme using this plugin then you can do so using the BrowserShots::get_shot method.

For example:

<img src="<?php echo BrowserShots::get_shot( 'https://prothemedesign.com', 600, 450 ); ?>" />

Keep in mind that the plugin must be installed and activated for this to work.

The get_shot method has 3 parameters.

  1. The url.
  2. The width.
  3. The height.

The other parameters, from the shotcode, can be implemented manually when outputting the html.

Multisite Compatibility

The Browser Shots plugin is compatibly with WordPress Multisite, just use the Network Activate feature to enable the shortcode on every site. If you only want to enable the shortcode for a specific site, activate the plugin for that site only.

More…

  • The code can be found on Github
  • You can reach out to me with questions or problems on Twitter

Screenshots

  • screenshot-1-5
    New Gutenberg block.
  • A view from inside of the WordPress TinyMCE editor.
  • The formatted front-end view of generated screenshots.

Blocks

This plugin provides 1 block.


  • Browser Shots

Installation

  1. Install easily with the WordPress plugin control panel or manually download the plugin and upload the folder browser-shots to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Reviews

I like it

wasanajones
August 3, 2020
yep, recommneded

Great PlugIn Fantastic support

meingarten
June 12, 2019
I would like to thank everyone involved for the great work. The fast response time and the helpful support are unique. The adaptation to my special wishes saved me weeks of working time. Thank you very much for that.

Great plugin, so customisable. So pleased I found it!

kategorgeous
June 11, 2019
I love this plugin. I used to use ShrinkTheWeb but the support was rubbish and it was costing me $5 per month. This is so much more customisable. I can change the sizes, put in backgrounds, add captions and links. So pleased I found this plugin it works great on my site.

Browser Shots is Amazing

Ronald Huereca
June 9, 2019
I was recently blessed to help contribute a Gutenberg block to Browser Shots. The shortcode, and now the block, are amazing additions.

Thanks, Ben, for this great plugin.

Amazing!

stuartbrameld
February 15, 2019
Wow, just happened to stumble across this whilst looking for a url to screenshot API wondering if someone had created anything for WordPress. Absolutely amazing, thanks so much for putting this together.

Favicon Version?

hllyyc
February 12, 2019
Perfect. Thank you 🙂 There may be another version of this plugin for the favicon.