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

推荐订阅源

U
Unit 42
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
博客园_首页
IT之家
IT之家
The Cloudflare Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Y
Y Combinator Blog
A
About on SuperTechFans
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
S
SegmentFault 最新的问题
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
小众软件
小众软件
有赞技术团队
有赞技术团队

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