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

推荐订阅源

B
Blog RSS Feed
Jina AI
Jina AI
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
博客园 - 司徒正美
罗磊的独立博客
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Vercel News
Vercel News
A
About on SuperTechFans
I
InfoQ
D
DataBreaches.Net
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队

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