[WordPress] 外掛分享: iframe

WordPress 外掛 iframe 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「iframe」是 2011-04-27 上架。
  • 目前有 80000 個安裝啟用數。
  • 上一次更新是 2025-01-31,距離現在已有 92 天。
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 56 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 0%

外掛協作開發者

webvitaly |

外掛標籤

embed | vimeo | iframe | youtube | Google Maps |

內容簡介

高級 iFrame Pro
iframe
捐贈
GitHub

[iframe src=”http://www.youtube.com/embed/oDlbBy9vfgI” width=”100%” height=”500″] 短代碼,應顯示類似下列的內容:

由於安全原因,WordPress 會刪除 iframe HTML 標籤。

iFrame 短代碼是 iframe HTML 標籤的替代,接受相同的參數。

您可以使用 iFrame 短代碼來嵌入來自 YouTube、Vimeo、Google 地圖或任何外部網頁的內容。

如果您需要通過直接鏈結嵌入來自 YouTube、Vimeo、SlideShare、SoundCloud、Twitter 的內容,您可以使用 短代碼。

https://youtube.com/watch?v=oDlbBy9vfgI%22%5D%EF%BC%9B%E9%A0%90%E8%A8%AD%E7%82%BA+src%3D%26%238221%3Bhttp%3A shortcode.
shortcode is a core WordPress feature and can embed content from many resources via direct link.
Important: You can not embed HTTP pages into HTTPS pages and vice versa.
So the protocol (http or httpS) for parent and embedded page should match.
iframe params:

src – source of the iframe: [iframe src="http://www.youtube.com/embed/7_nAZQt9qu0"]; by default src=”http://www.youtube.com/embed/7_nAZQt9qu0″;
width – width in pixels or in percents: [iframe width="100%"] or [iframe width="600"]; by default width=”100%”;
height – height in pixels: [iframe height="500"]; by default height=”500″;
scrolling – with or without the scrollbar: [iframe scrolling="no"]; by default scrolling=”yes”;
frameborder – with or without the frame border: [iframe frameborder="0"]; by default frameborder=”0″;
marginheight – height of the margin: [iframe marginheight="0"]; removed by default;
marginwidth – width of the margin: [iframe marginwidth="0"]; removed by default;
allowtransparency – allows to set transparency of the iframe: [iframe allowtransparency="true"]; removed by default;
id – allows to add the id of the iframe: [iframe id="custom_id"]; removed by default;
class – allows to add the class of the iframe: [iframe class="custom_class"]; by default class=”iframe-class”;
style – allows to add the css styles of the iframe: [iframe style="margin-left:-30px;"]; removed by default;
same_height_as – allows to set the height of iframe same as target element: [iframe same_height_as="div.sidebar"], [iframe same_height_as="div#content"], [iframe same_height_as="body"], [iframe same_height_as="html"]; removed by default;
any_other_param – allows to add new parameter of the iframe [iframe any_other_param="any_value"];
any_other_empty_param – allows to add new empty parameter of the iframe (like “allowfullscreen” on youtube) [iframe any_other_empty_param=""];

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「iframe」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.7 | 1.8 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 2.8 | 2.9 | 3.0 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | 4.5 | 4.6 | 4.7 | 4.8 | 4.9 | 5.0 | 5.1 | 5.2 | 1.0.0 | 1.1.0 | 1.2.0 | 1.3.0 | 1.4.0 | 1.5.0 | 1.6.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Advanced iFrame 》看起來您正在尋找一個 WordPress 外掛 - Advanced iFrame Pro。這個外掛可讓您使用 iframe 包含其他網頁到您的網站中,同時具有隱藏和修改元素、自動調整高度...。
  • Simple Iframe 》輕鬆地在區塊編輯器中插入 iframe。, 此外掛會在 Embeds 類別中新增一個 Iframe 區塊。, 只需拖曳 Simple Iframe 區塊,即可插入外部(或內部)URL。。
  • Simple YouTube Embed 》Simple YouTube Embed 外掛是在 WordPress 中嵌入 YouTube 影片最簡單的方法。此外掛延伸了預設的 YouTube 影片嵌入,加入了進階的播放器參數。, 與其他 YouT...。
  • Include Me 》Include Me 可以幫助您在文章或頁面中包含外部檔案,通常用於在不同文章或頁面之間分享檔案,或包含可能被視覺化編輯器破壞的 PHP 或其他程式碼。, 使用方法...。
  • Auto iFrame 》Auto iFrame 外掛可以輕鬆快速的將 iframe 嵌入到頁面中,並能夠自動調整 iframe 大小以適應嵌入頁面的內容。, Auto iFrame 的縮寫格式如下:, [auto-iframe ...。
  • Embed Iframe 》Embed Iframe 是一個外掛,可以讓您在 WordPress 文章中嵌入 iframe。iframe 是一個 HTML 標籤,允許在當前頁面中內嵌顯示網頁,儘管 iframe 可能導致網站變...。
  • AWEOS Google Maps iframe load per click 》自動 Google 地圖 iFrame 阻擋器, 您想在您的網站上使用嵌入式 Google 地圖,但您必須遵守 GDPR/DSGVO 的指南嗎?也許您希望加快您的網站速度,只有在必要時...。
  • Unfiltered MU 》Unfiltered MU 提供給管理者和編輯者 unfiltered_html 功能。這可避免 WordPress MU/WordPress 3.0 多站點從這些使用者的文章中刪除