
前言介紹
- 這款 WordPress 外掛「Browser Screenshots」是 2012-10-14 上架。
- 目前有 3000 個安裝啟用數。
- 上一次更新是 2024-01-30,距離現在已有 757 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 有 19 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
ronalfy | binarymoon | kevinlearynet |
外掛標籤
blocks | browser | generator | screenshot | browser shot |
內容簡介
使用 [browser-shot] 短代碼來自動化網站截圖的過程。一個圖示也會被加入 TinyMCE 編輯器中,以方便製作短代碼。
外掛使用從 WordPress.com 取得的「mshots」功能來自動捕捉網站截圖。該功能的非商業使用為免費。
這些圖片會儲存在 WordPress.com 的伺服器上,而不是存儲在你的網站中。圖片會在生成後約 24 小時進行快取再生成。
短代碼預覽
// 基礎截圖,寬度 600 像素
[browser-shot url="https://link-to-website" width="600"]
// 帶有連結到其他網站的截圖
[browser-shot url="https://link-to-website" width="700" link="https://www.binarymoon.co.uk/"]
// 帶有標題(使用預設的 WordPress 標題樣式)的截圖
[browser-shot url="https://link-to-website" width="700"]Add Caption[/browser-shot]
參數說明
url(必填)- 連結網址
width - 圖片寬度
height - 圖片高度
alt - 圖片替代文字
link - 圖將連結到的網址。留空則會連向截圖所在的網站
target - 瀏覽器連結目標,可設置 _blank 以在新視窗中開啟連結
class - 將一個類添加到 browsershots 包裝器
image_class - 將預設的 browsershots 圖像類別alignnone 更改為你選擇的類別
display_link(true 或 false,預設為 true)用於在截圖中顯示連結
post_links(true 或 false,預設為 false)用於連結到截圖所在文章的永久鏈接
代碼生成截圖
如果你想使用這個外掛來在主題中製作截圖,可以使用 BrowserShots::get_shot 方法來實現。
例如:
<img src="<?php echo BrowserShots::get_shot( 'https://prothemedesign.com', 600, 450 ); ?>" />
請注意,必須安裝並啟用外掛才能使用此功能。
get_shot 方法有三個參數:
網址。
寬度。
高度。
從 shotcode 中的其他參數可以在輸出HTML時手動實現。
多站點相容性
Browser Shots 外掛相容於 WordPress Multisite,只需使用 网络启用 功能即可在每個站點啟用短代碼。如果只想在特定站點啟用短代碼,請僅為該站點啟用外掛。
更多資訊
代碼可以在 Github 上找到:Github
你可以在 Twitter 上 聯繫我以提出任何問題或疑慮
原文外掛簡介
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
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Browser Screenshots」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 |
延伸相關外掛(你可能也想知道)
Spectra Gutenberg Blocks – Website Builder for the Block Editor 》a.com/tutorials/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme" rel="nofollow ugc">Spectra tutorials, you can easily learn how to ...。
Kadence Blocks — Page Builder Toolkit for Gutenberg Editor 》Kadence Blocks 是一個 WordPress 外掛,它附加自訂區塊和選項,擴展了 Gutenberg 編輯功能,使您能夠輕鬆創建美麗的網站,而不需要任何程式編寫。Kadence Bl...。
Extendify 》Extendify 是一個網站設計和製作工具平台,提供豐富的圖案和全頁面佈局,可用於 Gutenberg 區塊編輯器,幫助人們建立美麗的 WordPress 網站。, 使用 Extendif...。SiteOrigin Widgets Bundle 》rdPress website since 2013. Our Widgets Bundle is actively developed and regularly updated to ensure compatibility with the latest WordPress update...。
Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE 》Otter 是一款 Gutenberg Blocks 頁面建構外掛,可為 WordPress Block Editor(又稱 Gutenberg)添加額外功能,讓您享受更好的頁面建構體驗,而無需使用傳統的...。
Page Builder Gutenberg Blocks – CoBlocks 》, 注意:對於已受 CoBlocks 3.0.0 版本影響的使用者,請查看我們在 WordPress.org 支援論壇文章,如果您需要支援,請建立新的主題帖。, , CoBlocks 是新版 Gu...。
Layout Grid Block 》想要輕鬆設定自訂欄位寬度和位置的列排版嗎?也許您想要在文章中將內容對齊全局佈局網格。使用此佈局網格區塊,您可以實現以上兩個目標,或是其中一個。此外...。GenerateBlocks 》將不同的功能整合至編輯器,但並不會因為過多的一維方塊造成內容過於臃腫。使用 GenerateBlocks,您只需深入學習少量的方塊,即可用於創建任何內容。, Genera...。
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets 》3>Widget Options 讓您新增更多選項至小工具設定中,讓您完全控制網站的小工具。該外掛已下載超過 1,060,000 + 次,平均評價為 4.9 星,毫無疑問,Widget Opt...。
Widget Logic 》此外掛可在每個小工具中新增一個名為 "Widget logic" 的額外控制欄,讓您控制這個小工具會出現在哪些頁面上。文字欄位允許您使用 WP 的Conditional Tags或任...。
Starter Sites & Templates by Neve 》一個基於雲端的模板庫,可讓您使用1個按鈕創建或使用現有的網站模板。, 超過100個初學者網站和模板可用於最流行的頁面構建器, 免費和付費模板和起始網站可供...。
Stackable – Page Builder Gutenberg Blocks 》終極與古鐸版衣搭檔, Stackable 是您一直在等待的終極可靠古鐸版衣搭檔。使用堅強、輕便的自訂區塊、現成設計、UI套件、全域設定和高級自訂選項建立動態網站...。Kubio AI Page Builder 》, , Kubio 是一個創新的基於區塊的 WordPress 網站建立工具,它以全新的區塊來擴充編輯器功能並提供使用者無限的樣式選項。透過先進的編輯功能,Kubio 使用者...。
Content Views – Post Grid & Filter, Recent Posts, Category Posts … (Shortcode, Gutenberg Blocks, and Widgets for Elementor) 》易於篩選與顯示文章、頁面的方格/列表, 我們認為一個美麗的文章方格能夠令你的 WordPress 網站更加出眾,並保持訪客的參與度。這就是為什麼我們開發了 Conten...。
JetFormBuilder — Dynamic Blocks Form Builder 》JetFormBuilder — 動態區塊表單建立器, 這個功能強大且易於使用的表單建立器外掛讓你在區塊編輯器(Gutenberg)中建立、編輯和設計進階表單類型,不再需要其...。
