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

推荐订阅源

小众软件
小众软件
博客园_首页
M
MIT News - Artificial intelligence
雷峰网
雷峰网
GbyAI
GbyAI
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
S
SegmentFault 最新的问题
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 【当耐特】
V
Visual Studio Blog
月光博客
月光博客
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
云风的 BLOG
云风的 BLOG
美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队

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];
}