內容簡介
Lightbox With Ads 是一個靈活且響應式的燈箱,允許您在不同的 URL 中作為一個畫廊展示帖子中的圖像。
您可以購買 Premium 版本,以允許您添加 Google AdSense 的廣告,或免費測試該功能 14 天。
安裝
先決條件:
您需要在設置 -> 永久鏈接 -> 通用設置中將永久鏈接設置為“帖子名稱”
將外掛下載到您的 WordPress 網站
安裝外掛
啟用外掛
在設置中自定義接口和外觀
從 Google Adsense 貼上廣告代碼(推薦尺寸為 300×300 的移動設備和 300×600 的桌面)
因為 WordPress 不允許直接貼上腳本,所以貼上的代碼必須是您從 Google AdSense 帳戶中複製的完全代碼。
代碼應該看起來像這樣:
(<ins> 元素會有所不同,但它必須具有“data-ad-client”屬性,該屬性應具有與其上方的腳本相同的 ca-pub 號碼):
(adsbygoogle = window.adsbygoogle || []).push({});
外掛標籤
開發者團隊
原文外掛簡介
Lightbox With Ads is a flexible and responsive lightbox that allows you to present images from post as one gallery in a different url.
You can purchase Premium that allows you to add ads from Google AdSense, or test the feature for free for 14 days.
Instalation
Prerequisites:
You need to have permalinks set to “post name” in Settings -> Permalinks -> Common Settings
Download the plugin to your WordPress site
Install the plugin
Activate the plugin
Customize the interface and appearance in Settings
Paste ad code from Google Adsense (recommended size is 300×300 for mobile and 300×600 for desktop)
Beacuse direct pasting of scripts is not allowed by WordPress, the pasted code has to be the exact code you copied from your Google AdSense account.
How the code should look
(the element will vary, but it HAS to have “data-ad-client” property, that should have the same ca-pub number as the script above it):
(adsbygoogle = window.adsbygoogle || []).push({});
