[WordPress] 外掛分享: Subscribe Button Bar for YouTube Embed Videos

首頁外掛目錄 › Subscribe Button Bar for YouTube Embed Videos
WordPress 外掛 Subscribe Button Bar for YouTube Embed Videos 的封面圖片
10+
安裝啟用
尚無評分
32 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.0.3 上架:2026-01-07

內容簡介

總結:Subscribe Button Bar 是一個強大的 WordPress 外掛,專為無縫整合 YouTube 訂閱功能到您的網站而設計。它可以自動偵測您內容中的 YouTube 影片,包括內嵌的 iframe 和直接網址,並策略性地將可自訂的 YouTube 影片訂閱按鈕直接置於它們下方。

問題與答案:
1. 這個 WordPress 外掛的名稱是什麼?
- 答:Subscribe Button Bar。
2. 這個外掛的主要功能是什麼?
- 答:它可以自動偵測內容中的 YouTube 影片並在其下方放置可自訂的訂閱按鈕,從而增加頻道訂閱人數。
3. 使用這個外掛可以達到的目標有哪些?
- 答:增加 YouTube 訂閱者、提高觀眾參與度,或確保全面響應式設計以提供一致的使用者體驗。
4. 如何設定這個外掛的外觀?
- 答:您可以自訂顏色、文字和版面設定來完美符合品牌識別。
5. 如何開始使用這個外掛?
- 答:通過 WordPress 儀表板安裝並啟用 ‘Subscribe Button Bar’,然後前往“Settings > Subscribe Button Bar”設定您的 YouTube 頻道 ID。
6. 如何找到 YouTube 頻道 ID?
- 答:登入 YouTube 後,訪問 https://www.youtube.com/account_advanced,然後複製“Channel ID”下的字串。
7. 這個外掛使用了哪些外部服務?
- 答:它使用了 YouTube API 來顯示訂閱按鈕和您的訂閱人數,由“Google 平台庫”提供。請注意,當加載時可能會向 Google 發送您的 IP 和用戶代理。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Subscribe Button Bar for YouTube Embed Videos」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Subscribe Button Bar for YouTube Embed Videos is a robust WordPress plugin designed to seamlessly integrate YouTube subscription functionality into your website. It automatically detects YouTube videos within your content and strategically places a customizable YouTube subscribe button bar directly beneath them.
This plugin serves as an effective video marketing tool, creating a sleek, non-intrusive call to action that encourages viewers to subscribe to your channel immediately. Whether you aim to increase YouTube subscribers, improve viewer engagement, or ensure a consistent user experience with a fully responsive design, Subscribe Button Bar provides the professional features necessary for channel growth.
Key Features:

Intelligent Auto-Detection: Automatically identifies YouTube iframes within your posts and pages and injects the subscribe bar — no manual setup per post needed.
Shortcode Support: Place the subscribe bar anywhere — pages without videos, sidebars, landing pages — using a simple shortcode.
Gutenberg Block: A native block editor block lets you drop the subscribe bar exactly where you want it in the visual editor.
Flexible Channel Input: Enter your Channel ID, @handle, or paste any YouTube channel URL — the plugin figures out the rest.
Fully Customizable: Tailor colors, text, theme, and layout to match your brand.
Responsive Design: Looks great on desktops, tablets, and mobile phones.
Performance Optimized: Lightweight with no jQuery dependency on the frontend.
MutationObserver Support: Catches YouTube videos added dynamically (AJAX pagination, lazy loading).

Customization Options:

Enable/Disable Toggle: Master switch to turn the subscribe bar on or off globally.
YouTube Channel: Enter your Channel ID, @handle, or any YouTube channel URL.
Theme Selection: Choose between Default (light) and Dark themes.
Subscriber Count: Show or hide the subscriber count on the button.
Layout Options: Default (icon + “Subscribe” text) or Full (channel avatar + channel name).
Custom Text: Add personalized text that appears before the button.
Background Color: Customize the bar’s background color.
Text Color: Customize the text color.
Post Type Control: Restrict the bar to specific post types (posts, pages, custom post types).
Per-Post Exclusion: Exclude specific posts or pages by ID.

Using the Shortcode
Place the subscribe bar anywhere on your site — pages without YouTube videos, sidebars, footers, or landing pages — using:
[subscribe_button_bar]

This uses your global plugin settings. You can override any setting per-use with optional attributes:
[subscribe_button_bar channel="@yourchannel" text="Subscribe for weekly videos!" theme="dark" layout="full" count="hidden" bg_color="#1a1a1a" text_color="#ffffff"]

Shortcode Attributes:
Attribute
Values
Default
Description
url
YouTube or Shorts video URL
(none)
Embed a YouTube video or Short and place the subscribe bar below it. Accepts youtube.com/watch?v=, youtu.be/, youtube.com/shorts/, or youtube.com/embed/ URLs.
channel
Channel ID, @handle, or URL
Global setting
Override the YouTube channel for this bar only.
text
Any string
Global setting
Text displayed before the subscribe button.
theme
default, dark
Global setting
Button color scheme.
layout
default, full
Global setting
default shows the subscribe icon and text; full shows channel avatar and name.
count
true, hidden
Global setting
Show or hide the subscriber count.
bg_color
Hex color (e.g. #ffffff)
Global setting
Background color of the bar.
text_color
Hex color (e.g. #000000)
Global setting
Text color of the bar.
Examples:
Minimal — uses all global settings:
[subscribe_button_bar]
Embed a video with a subscribe bar below it:
[subscribe_button_bar url=”https://www.youtube.com/watch?v=dQw4w9WgXcQ”]
Embed a YouTube Short with a subscribe bar below it:
[subscribe_button_bar url=”https://www.youtube.com/shorts/VIDEO_ID”]
Embed a video and override the channel and text:
[subscribe_button_bar url=”https://youtu.be/dQw4w9WgXcQ” channel=”@yourchannel” text=”Subscribe for more!”]
Bar only — custom channel with dark theme:
[subscribe_button_bar channel=”@yourchannel” theme=”dark” text=”Subscribe for weekly videos”]
Full layout, no subscriber count:
[subscribe_button_bar layout=”full” count=”hidden”]
Using the Gutenberg Block
In the block editor, search for “Subscribe Button Bar” in the block inserter (or type /subscribe). The block renders server-side so it always reflects your current settings.
The block sidebar includes:

Video URL — paste a YouTube video URL or Shorts URL (e.g. youtube.com/watch?v=... or youtube.com/shorts/...). The block will embed the video and place the subscribe bar directly below it. Leave empty to show only the subscribe bar.
Channel Override — enter a Channel ID, @handle, or YouTube channel URL to use a different channel on this specific page. Leave empty to use your global settings.
Custom Text Override — override the button label text for this block only. Leave empty to use your global custom text.

Entering Your YouTube Channel
The plugin accepts any of the following formats in the settings page and in the channel shortcode attribute:

Channel ID: UCxxxxxxxxxxxxxxxxxxxxxx
@Handle: @yourchannel
Channel URL: https://www.youtube.com/channel/UCxxxxxxxxxxxxxxxxxxxxxx
Handle URL: https://www.youtube.com/@yourchannel
Legacy user URL: https://www.youtube.com/user/yourchannel
Custom URL: https://www.youtube.com/c/yourchannel

The plugin parses the input automatically — no need to extract the channel ID manually.
Getting Started:

Install and activate the plugin via the WordPress dashboard.
Navigate to Settings > Subscribe Button Bar.
Enter your YouTube channel — paste your Channel ID, @handle, or any YouTube channel URL.
Configure your desired appearance settings and save.
Embed any YouTube video in a post/page and the subscribe bar will appear automatically. Or use [subscribe_button_bar] to place it anywhere.

External Services
This plugin uses the YouTube Subscribe Button API provided by Google’s Platform Library (https://apis.google.com/js/platform.js). This script is loaded on pages where the subscribe bar is displayed and may send the visitor’s IP address and user agent to Google.
Policies: Google Privacy Policy | YouTube Terms of Service

延伸相關外掛

文章
Filter
Apply Filters
Mastodon