Arno Welzel

Results 309 comments of Arno Welzel

Since you are a bit disappointed - sorry, but I maintain this project in my free time and some things don't have a high priority. At https://wordpress.org/support/topic/opening-photoswipe-via-javascript-api/ you also find...

Well - since I don't see the HTML code in which this should be used, just a hint: `#image-1` needs to be the ID of the link to the image,...

Also check your web developer console for errors and make sure, that jQuery is available (my plugin does not need jQuery, but your code does).

Please check the result of this in the console: `console.log(document.getElementById('image-1'))`

Then this should open the lightbox: `document.getElementById('image-1').click();` (Edit: of course without `console.log`...)

As I said - without `console.log`: Then this should open the lightbox (sorry for the typo): `document.getElementById('image-1').click();`

Ok, then your jQuery call may not be correct. But this is something which has nothing to do with my plugin.

My plugin also uses 2000 for the action priority. Since it works, when lowering the priority for JetPack the easiest fix would be to increase the priority in my plugin...

Hmm - this is bad news. A priority lower than about 200 will cause conflicts with other plugins - that's the reason why I set it to 2000 to be...

After reviewing the code you mentioned - this translates to: 1. start output buffering (`ob_start()`) 2. output the site header (`wp_head()`) 3. as long as there is anything in the...