跳到内容

Lightbox With Ads

v1.0

wn24cz · 2023年1月3日 上架

Lightbox With Ads is a flexible and responsive lightbox that allows you to present images from post as one gallery in a different url.

正在使用
10 以下
评分
暂无
累计下载
1,213
最近更新
2023年1月10日
需要 WordPress 5.5+已测试到 6.1.17

贡献者

截图

Installation 1)
Installation 1)
Installation 2)
Installation 2)
Configuration 1)
Configuration 1)
Configuration 2)
Configuration 2)
Inside gallery on mobile (placeholder will be ad if you use premium)
Inside gallery on mobile (placeholder will be ad if you use premium)
Inside gallery on desktop (placeholder will be ad if you use premium)
Inside gallery on desktop (placeholder will be ad if you use premium)

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

  1. Download the plugin to your WordPress site
  2. Install the plugin
  3. Activate the plugin
  4. Customize the interface and appearance in Settings
  5. 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({});

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums