Browser Screenshots
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. The plugin uses the ‘mshots’ functionality, from WordPress.com, to automatically take screenshots of websites. This function is free for non-commercial use. The images are stored on the wordpress.com servers and are not saved onto your own website. The images are cached for roughly 24 hours before being generated again. Shortcode Preview // basic shot 600px wide [browser-shot url="https://link-to-website" width="600"] // shot with link to other website [browser-shot url="https://link-to-website" width="700" link="https://www.binarymoon.co.uk/"] // shot with caption (uses default WordPress caption styles) [browser-shot url="https://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: " /> Keep in mind that the plugin must be installed and activated for this to work. The get_shot method has 3 parameters. The url. The width. 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
TailPress – Tailwind for WordPress
Tailwind CSS is a great companion to building block based sites in WordPress. Unfortunately, it’s been pretty complicated to add Tailwind CSS to WordPress since it needs to be compiled with Node.js in order to be production ready. This plugin takes care of that by adding Tailwind CSS to WordPress in one easy step (activate the plugin) and at the same time takes care of performance and caching so your site remains fast and production ready! Who It’s For This is primarily for developers and users that are familiar with Tailwind CSS and comfortable styling their site using their utility class framework. It’s also for those who have struggled to add Tailwind to their workflow without having to constantly compile their CSS every time the classes in their page content changes. How it Works Extracts classes from pages and compiles them server-side into Tailwind CSS Caches the dynamically generated CSS to avoid performance issues on the frontend of your production site. Are you affiliated with tailpress.io the theme? No, we are not! Unfortunately the same name was used for both out of coincidence, but we are not affiliated and are two different solutions. Tailpress.io is a great starting point for developing custom themes with deep integration of Tailwind. I would recommend it for any developer that wants to build a custom theme that depends heavily on Tailwind. Tailpress, this plugin, adds Tailwind support to any project as an add-on. It can be used as much or as little as you need, added to custom themes or pre-existing ones. Can this be used in production? Yes! Although the styles in the backend get generated on the fly, the CSS on the frontend gets cached for every page. Changing any classes on the page will bust the cache automatically so it’ll still stay up to date with any changes. Can this be used outside the block editor? Yes! This will work anywhere on the backend or front end of your site that uses classes to style things. Known Issues Device Preview Mode in Block Editor The non-desktop preview modes in the block editor utilize an iframe and don’t load assets properly. Therefore your Tailwind styles won’t be visible here. Page Caching If you have any page caching on your site, you’ll have to clear your cache for the best experience.