
內容簡介
🎉 輕鬆在 WordPress 網站上顯示任何網址的網頁截圖 🎉
此外掛使用 Urlbox API 生成網頁截圖並在您的網站上顯示。請注意,Urlbox API 是一個付費服務-您可以在https://urlbox.io註冊試用。
如何使用這個外掛
首先啟用插件並在設定頁面中填入您的 Urlbox.io API 金鑰和密碼。
(可選) 您可以在外掛設定頁上設置您的截圖的預設選項,例如寬度、高度和縮略圖寬度。
現在,當您想在文章或頁面中顯示截圖時,只需在短代碼區塊中使用以下內容:
[urlbox url=google.com] // 顯示 google.com 的截圖
如果您想覆蓋任何設置,只需在短代碼中傳遞選項:
[urlbox url=google.com full_page=true thumbnail_width=400] // 顯示 google.com 的全屏截圖以 400px 為寬度的縮略圖
該插件會在 <img> 元素內建立 <figure> 元素包裝。您可以在設置頁面上設置這兩個圖片和圖像元素的類(將應用於所有屏幕截圖),並在短代碼中傳遞這些選項以覆蓋單個屏幕截圖的設置:
[urlbox url=google.com figure_class=my-figure-class img_class=my-img-class ] // 更改包裝figure和img元素的CSS類
你需要什麼
WordPress
Urlbox帳戶
Your Urlbox API金鑰和密碼 (從:https://urlbox.io)
已知問題
目前沒有
外掛標籤
開發者團隊
原文外掛簡介
🎉 Easily display website screenshots of any URL in your WordPress site 🎉
This plugin uses the Urlbox API to generate website screenshots and display them on your site. Please note the Urlbox API is a paid service – you can sign up for a trial at https://urlbox.com.
How to use the plugin
When running WordPress locally or in a containerised environment, we recommend you use at least WordPress version 6.0 and PHP 8.0.
First activate the plugin and fill in your Urlbox.com API Key and Secret in the settings page.
(Optional) You can set default options for your screenshots such as width, height, and thumbnail width on the plugin settings page.
Now when you want to display a screenshot inside a post or page, just use the following in a Shortcode block:
[urlbox url=google.com] // display a screenshot of google.com
If you want to override any of the settings, just pass the option into the shortcode:
[urlbox url=google.com full_page=true thumbnail_width=400] // display a full_page screenshot of google.com thumnailed down to 400px wide
The plugin wraps the element inside a
[urlbox url=google.com figure_class=my-figure-class img_class=my-img-class ] // change the css classes of the wrapping figure and img element
What do you need
WordPress
A Urlbox Account
Your Urlbox API key and secret (From: https://urlbox.com)
Known Bugs
1.6.0 – Bug in proxy logic. Testing one’s proxy connection in the plugin’s settings will not work due to an ‘Invalid JSON’ error, because of a lack of JSON encoding. This error does not display in the WordPress playground, but will display in any dockerised/live environment. Action taken was to fix the bug and release 1.6.1, and introduce a dockerised test/development environment for future coverage before releases.




