惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
L
LangChain Blog
博客园_首页
J
Java Code Geeks
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
WordPress大学
WordPress大学
V
Visual Studio Blog
T
The Blog of Author Tim Ferriss
U
Unit 42
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
C
Check Point Blog
IT之家
IT之家
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
D
Docker
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ

WordPress Plugin

How to Create an Audio Player Playlist from an XML File Copy Audio URL in Wonder Audio Player YouTube Error 153 | WordPress Plugin Wonder Lightbox JavaScript Events | WordPress Plugin How to Create a WordPress Gallery from an XML File How to Dynamically Create a WordPress Image and Video Gallery Using WordPress Media Library IDs How to Add an Image to the Lightbox Gallery Without Showing It in the Grid Gallery How to Make the PDF Page Fit the Entire Lightbox Width When Opening a PDF File Double Tap to Play or Pause the WordPress Audio Player on Touch Devices
How to Remove URL Query Parameters in Wonder Lightbox
2025-03-27 · via WordPress Plugin

Plugin:

Wonder Lightbox, Version 10.8 or above

Tutorial:

In some situations, query string or query parameters are dynamically added to image or video URLs. When opening the image or video in the lightbox, you may want to remove the URL query string.

To remove the query string from the URL, go to your WordPress dashboard and navigate to the left menu: Wonder Lightbox -> Lightbox Options. Then, in the Advanced Options tab, add the following code to the Data Options input box:

data-removequerystring="true"

If you'd like to do more than simply remove the query string, you can use your own JavaScript function to pre-process the URL. In that case, add the following code to the Data Options input box:

data-filterurl="myURLFilter"

myURLFilter is the name of your custom JavaScript filter function. It needs to be defined as a global function and bound to the window object. For example, you can define it in the Custom JavaScript input box under the Lightbox Options tab:

function myURLFilter(href)
{
  return href.split("?")[0];
}