Jason Spatola
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Need to unlink images on index pageI’ve also noticed that in most Windows browsers, the background fades abruptly (sort of awkwardly), and closing PhotoSwipe returns the user to the top of the page, instead of the spot where they opened the gallery.
To fix:
layout.css
remove
float: left;
from
article
and
.posttext
This will fix the bug, but you’ll now have your first “between post separator” thingy in your header.
I’m not familiar enough with your code to know why, exactly, but it shouldn’t be too hard to figure out an alternate way to get it back into place.
I’m not sure what the source of this bug is… Another PhotoSwipe-enabled site exhibited this same behavior, only this time caused by declaring (and fixed by removing) a height property on the html element.
Weird!
Forum: Fixing WordPress
In reply to: Need to unlink images on index pageModify psw.call.js so that it looks like this:
jQuery(document).ready(function ($) { var myPhotoSwipe = $(".gallery").each(function(){ $(this).find(".gallery-item a").photoSwipe({ allowUserZoom:false, zIndex:'10000', captionAndToolbarShowEmptyCaptions:false }); }); });
I’ve tested this for a couple days, and it seems to work – all galleries (including the single image ones you’re seeking to accomplish) should now load into separate instances of PhotoSwipe via jQuery.
Let me know how it goes.
Forum: Fixing WordPress
In reply to: Need to unlink images on index pageDo you still need help with this?
Are you using a WordPress PhotoSwipe plugin, or are you just using the PhotoSwipe standalone library?
Forum: Plugins
In reply to: [Mobile Gallery] [Plugin: Mobile Gallery] Separate gallery support?EDITED version – my first post had some incorrect stupidity in it.
Calling it like this SEEMS to work.
jQuery(document).ready(function ($) { var myPhotoSwipe = $(".gallery").each(function(){ $(this).find(".gallery-item a").photoSwipe({ allowUserZoom:false, zIndex:'10000', captionAndToolbarShowEmptyCaptions:false }); }); });
I’ve got a custom version that adds NextGEN support (in tandem with native gallery support) – it seems to work as well.
I’m sure you probably have a better solution, but in case this helps………
I too am looking for a solution, as are others:
I’m not sure there’s a way to dynamically serve separate galleries in PhotoSwipe with the script’s current implementation.
The post above mentions a workaround – place the bulk of your gallery content under a <!–more–> jump.
You’ll have to decide whether or not this works for you.
Perhaps when Mr. Rabe gets off his Skyrim sabbatical he’ll take a look. ??
So… Has anyone tried to reproduce this?
Forum: Fixing WordPress
In reply to: Visual Editor now strips HTML comments (new in 3.2)… How to prevent?The HTML comments weren’t totally vital to me – I used to use them as “placeholders” to keep empty divs from being gobbled up.
To that extent, I found a better way of doing this… To simply keep all divs, empty or not, I use this function:
function my_tinymce( $init ) { $ext = 'div[id|name|class|style]'; if ( isset( $init['extended_valid_elements'] ) ) { $init['extended_valid_elements'] .= ',' . $ext; } else { $init['extended_valid_elements'] = $ext; } return $init; } add_filter( 'tiny_mce_before_init', 'my_tinymce' );
Also, jrhall – thanks for the heads up. Have you/anyone tested this to see if HTML comments are preserved?
Forum: Fixing WordPress
In reply to: Visual Editor now strips HTML comments (new in 3.2)… How to prevent?Can’t really figure out what specifically changed and led to this problem, but turning off element cleanup saves the day.
Add to functions.php:
function mod_mce($initArray) { $initArray['verify_html'] = false; return $initArray; } add_filter('tiny_mce_before_init', 'mod_mce');
Forum: Fixing WordPress
In reply to: Flash of Unstyled Content (White Flash On Page Load)No difference for me, either.
Ipstenu, socaltyger – care to test?
Forum: Fixing WordPress
In reply to: Flash of Unstyled Content (White Flash On Page Load)https://ipstenu.org/
and
https://www.prettygeeky.comare exhibiting the flash pretty hard. It’s pretty ugly (though the sites are otherwise attractive).
Why is this happening? Are we completely sure this is a 3.2-only issue? Anybody care to downgrade and test?
Forum: Plugins
In reply to: [WordPress Reusables] Auto p tags added to reusables…And no luck.
Forum: Plugins
In reply to: [WordPress Reusables] Auto p tags added to reusablesSuperb plugin (should be integrated into core IMO) other than this – I’ll check into it and see if I can figure out a solution.
Version 3.10 still has some php tag problems. To get it working with PHP 5.3, one needs to change <? to <?php in the following files:
class.wp-plugins.php
line 425
line 452 (you can also delete the space)reusables.php
line 658Not sure about Techsim and snooze’s problems, but that fixed mine.