hlanggo
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Broken with use of cache plugin after updateIt does work. Likely just had caching problems at first.
I followed the advice on:
https://www.dfactory.eu/support/topic/exclude-images-from-responsive-lightbox/This would be a great feature. There is a super easy workaround though: end the image URL with “#” as in “my-image.png#”. The plugin regex won’t pick it up, but browsers load it normally (tested in Chrome and Firefox, Safari).
So far, I think it works great. With the latest update (which has conditional loading), adding # to an image link also prevents any responsive lightbox scripts from loading.
Also, no validation errors:
https://validator.w3.org/check?uri=https%3A%2F%2Fwww.laguardiahotelcebu.com%2Flocation%2F&charset=%28detect+automatically%29&doctype=Inline&group=0I’ve also tested in Chrome, Firefox and IE, latest versions. Hopefully, it works fine on Safari too.
Btw, if there’s anything wrong with this method, I’d really appreciate knowing about it.
Resolved (sort of). The third post had image links with rel=lightbox manually added. This apparently interfered with the lightbox for the gallery in the first post.
I had “Add lightbox to WordPress image links by default.” off because there was an image link which I didn’t want to open in a lightbox.
To solve the issue, I activated “Add lightbox to WordPress image links by default.” so that I could remove all the manually added rels. And then for the image to be excluded, I followed the advice at:
https://www.dfactory.eu/support/topic/exclude-images-from-responsive-lightbox/
I am not sure whether WordPress core default-loads jQuery in header or footer, but on site with Thesis theme:
If no lightbox script, no blocking jquery.
https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.metroparkhotelcebu.com%2Fhotel-policiesWith lightbox script, there is blocking jquery.
https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.metroparkhotelcebu.com%2Feconomy-room%2F885If you say that jquery has to load first for responsive lightbox to work, I won’t argue and will continue to use it (as is) since (for now) I think lightbox is important enough to justify the speed penalties.
But if responsive lightbox can work with jquery defered or asynchronously loaded, please let me know because there are cache plugins that will force js to be deferred. I also know that it can be done through functions.php
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Broken with use of cache plugin after updateI had similar problem with Zencache. Lightbox wouldn’t work when “Conditional Loading” was enabled.
Then, I tried (first putting Cloudflare on developmental mode), (second) disable Zencache.
It worked. Then, I re-enable Zencache + clicking “save all changes”, still works, then finally turn on Cloudflare + purge all cache.
My webpages w/o images now score 91/97 on PageSpeed Insights. Before latest version, it would be 74 on mobile due to lightbox scripts loading, even without images around.
You said it was (almost) impossible. But you did it in 1.5.6 . ??
Forum: Fixing WordPress
In reply to: jquery.min.js (Google CDN) & jquery-migrate.min.js in footerI didn’t reply 1-2 months ago because the chance for (useless) arguments was getting too high.
Devices cache especially common scripts used by everything.
Please See: https://www.ads-software.com/plugins/use-google-libraries/
Of course, I could just use Google Libraries, but I’m (silly) and also want the scripts to load in footer which GL doesn’t do. Because everyone’s using mobile devices these days, so faster is better.
Simply put, the idea of taking advantage of cached local copies isn’t silly, especially in countries with poor internet connection.
Forum: Fixing WordPress
In reply to: Can someone please update the Coverting Database Charaset guide?Sorry for very delayed reply as this issue made me hot under the collar 1-2 months ago so I didn’t want to revisit it (nor wish to point that most WordPress sites do not have humongous databases nor maintained by IT staff with elite skill levels).
Unfortunately, I had to convert another small (old) site.
The instructions I followed:
https://alexking.org/blog/2008/03/06/mysql-latin1-utf8-conversion
https://dreamdare.org/tips-tricks/fixing-database-error-illegal-mix-of-collations-latin1_swedish_ciimplicit-and-utf8_general_cicoercible/1) phpmyadmin export
2) notepad++ to search and replace
3) drop all tables
4) phpmyadmin import
(as always, back-up, back-up, back-up)Screencap of previous and after – https://i.imgur.com/9H7clbN.png
I didn’t need to change (overall) database character set as it was already utf8.
As for the guide, it should at least (prominently) include a method for small databases.
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] W3 markup validation fails@ dFactory, thank you for the correction. I will inform two theme-makers about:
1 x Element dl is missing a required instance of child element dd.
(per picture)1 x Element style is missing required attribute scoped.
(per post with gallery)Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] W3 markup validation fails1 x Bad value lightbox error
1 x Element dl is missing a required instance of child element dd.
(per picture)1 x Element style is missing required attribute scoped.
(per post with pictures)WordPress default memory limit is only 40 mb. Wordfence default is 256 mb.
As we’ve just transferred from shared hosting to Digital Ocean, we can’t afford plugins which use up more memory than WordPress cause it will hit the memory limit and kill mysql.
I’ve set Wordfence to 50 mb limit for its scans. If it takes more than 50 mb though, I’ll have to find another security plugin.
Forum: Themes and Templates
In reply to: [Twenty Fifteen] Twenty Fifteen theme breaks in WordPress 4.2OK. I had a 2015 child theme – I decided to delete it and 2015 (again) before installing new copy.
Now, it works.
I’m now going to convince myself to be proactive and fix my two production sites before they start to blank out…
Forum: Themes and Templates
In reply to: [Twenty Fifteen] Twenty Fifteen theme breaks in WordPress 4.2Thankfully, this only broke on a test site on a new server.
I already tried deleting the 2015 theme and downloading fresh copy, still blank. It’s also blank image in Appearances > Themes.
2013 and 2014 – are fine. It’s 2015 that’s screwy.
I also activated debugging. And nothing pops up.
I tried increasing PHP memory limits. Still no fix.
Am very thankfully that two production sites using 2015 are not showing blanks.
Forum: Fixing WordPress
In reply to: jquery.min.js (Google CDN) & jquery-migrate.min.js in footerNot just faster. Google’s version is probably already on the visitor’s computer or mobile device. Meaning it may not have to be loaded at all.
For mobile users with limited data, that’s a plus.
Forum: Fixing WordPress
In reply to: jquery.min.js (Google CDN) & jquery-migrate.min.js in footerBut Google CDN is faster, and I’m not saying that the most recent jquery version will be grabbed from Google CDN.
I actually got the idea from how WordPress Twenty Fifteen uses Google Fonts, as 2015 grabs the font file directly from Google instead of having the font file hosted locally.