ctrlaltdelete
Forum Replies Created
-
Thanks used:
add_filter('autoptimize_filter_imgopt_lazyload_cssoutput','no_noscript'); function no_noscript() { return '<style>.lazyload,.lazyloading{opacity:0;}.lazyloaded{opacity:1;transition:opacity 300ms;}</style>'; }Forum: Themes and Templates
In reply to: [Twenty Sixteen] Social Icons doesn’t recognize feedburnerDerty fix:
Add class “rss-link” on menu setup:
.rss-link a:before { content: "\f413"; }Make it pwetty:
.rss-link a { color: #f26522; }@stodorovic Thanks so much! I was running a pre v11 version of Yoast because of their compulsory schema and because I never figured out how to keep breadcrumbs myself. But with your solution i can finally update!!! which is great because v10 breaks classic editor text mode.
THANKS!
This plugin is stupid i can’t believe the author don’t care!!!
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Find related posts with similar titles first?It seems i have to choose between related by taxonomy or titles. There’s no plugin for both. Oh well. Thanks!
It works, i figure it out. You don’t see the real code on browser “inspect” you have to view the source code to see data-lazy-src and srcset 1px placeholder.
@kokkieh I tested same image next to each other. Once called with
the_post_thumbnail()and then withget_the_post_thumbnail_url().the_post_thumbnail()Renders about a second later. While:
get_the_post_thumbnail_url()Shows up immediately.So this IS working it just doesn’t look like in the example. Could it be possible that this page is outdated? -> https://jetpack.com/support/lazy-images/
Specifically this example:
<img src="https://jetpack.com/placeholder.jpg" data-lazy-src="https://jetpack.com/image.jpg" />Because that’s what threw me off. I was expecting something like that in the HTML, but it you don’t see that in reality. It works differently.
- This reply was modified 6 years, 8 months ago by ctrlaltdelete.
I ran a test and found that it isn’t even working with standard wp functions like:
<?php the_post_thumbnail(); ?>I get this html:
<img width="640" height="905" src="https://i2.wp.com/example.com/wp-content/uploads/2019/09/test.jpg?fit=640%2C905&ssl=1" class="attachment-post-thumbnail size-post-thumbnail wp-post-image jetpack-lazy-image jetpack-lazy-image--handled" alt="" data-lazy-loaded="1" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 60vw, (max-width: 1362px) 62vw, 840px">So, i’m confused now. How to trigger lazy load at all?
Forum: Plugins
In reply to: [pipDisqus - Lightweight Disqus Comments] Comments count locallyNvm i tried the importer it missed 1/3 of the comments so the counters don’t match at all.
count.js it is yuck!Forum: Reviews
In reply to: [Health Check & Troubleshooting] Instant Website Destruction116 plugins? That’s insane. More than 15 is already pushing it.
Forum: Plugins
In reply to: [Autoptimize] Full page cachingCan I ask you something @jiggaman ?
I assume you are doing cache everything with a page rule in cloudflare. But when you publish a new post cloudflare won’t clear the cache (for home and other archives). So how do you deal with it? Just manually clear all caches each time?As i told you on my previous message, it is broken for custom post types archives.
Also going to for example https://example.com/product/ and doing “Clear cache for this page” Has no effect (it loads for a sec but doesn’t delete it).
I don’t think the plugin is ready to handle custom post type archives. Might need to go back to Automatic’s super cache.
Manually how? Sorry i’m confued.
Also going to for example
https://example.com/product/and doing “Clear cache for this page” Has no effect (it loads for a sec but doesn’t delete it).So the plugin creates the cache but doesn’t delete it specifically. The only solution is doing “Delete Cache” wich i assume deletes everything.
Basically my suggestion is, add the option to clear the custom post archive when a new custom post is created.
Else i’m forced to delete thousands of unrelated cached pages when i only need to clear 1 specific archive.
Please consider.
It depends on what the admin needs, if
has_archiveis set totruewhen registering the new type it will work. Which is often the case since you generally want the posts to be somewhere.https://codex.ww.wp.xz.cn/Function_Reference/register_post_type
Since this cache exists for the custom posts that support it, it should also be purged when a new custom post is published.
If it doesn’t exist (is disabled) then there’s no visible issue.
- This reply was modified 6 years, 10 months ago by ctrlaltdelete.