yankiara
Forum Replies Created
-
For those interested, this code works:
add_filter( 'slim_seo_meta_title', function( $title ) { $slim_meta = get_post_meta( get_the_ID(), 'slim_seo' ); if ( $slim_meta && $slim_meta[0]['title'] ) return $slim_meta[0]['title']; /* YOUR STUFF */ } );
Might be added to documentation?
OK, thank you. I’ll do that.
Hi, no I don’t.
Indeed, I found a few threads in the community that confirm that root element is needed.
So the solution could be setting first ListItem element “name” with site name.
I tried to test it with Google schema validation tool and it works ??- This reply was modified 2 years, 11 months ago by yankiara.
Forum: Plugins
In reply to: [Slim SEO - Fast & Automated WordPress SEO Plugin] Filter hooks documentationThank you so much, this is some awesome support ??
Hi, and thanks for your answer!
Indeed I deactivated the feature, but I just reactivated it.For me, the issue is not just the null name.
It looks like every item is shifted toward root level:
– “position” field is OK
– “item” field is wrong, as it should start at “https://hopital-gimont.fr/services/” (depth 1, like “https://example.com/books”), but it actually starts at root level “https://hopital-gimont.fr/” (and for item 2, it should be “https://hopital-gimont.fr/services/ehpad/” instead of “https://hopital-gimont.fr/services/”.Does it make sense? Am I wrong?
Hi,
And thanks for your reply!It is actually inline JS from theme/plugins, so I have no control over it, that’s the problem ??
But for those who are interested, in the meantime I wrote a little script that solves the problem in a rather brute way, filtering the whole html ouput to delay JS execution with DOMContentLoaded:
<?php function callback($buffer) { preg_match_all( "/<script(?:[^>]*)>(?<content>[\s\S]*?)<\/script>/ims", $buffer, $matches, PREG_SET_ORDER ); foreach ( $matches as $code ) { if ( strpos( $code['content'], 'jQuery(' ) === false ) { continue; } if ( strpos( $code['content'], 'DOMContentLoaded' ) !== false ) { continue; } if ( empty( $code['content'] ) ) { continue; } if ( preg_match( '/(application\/ld\+json)/i', $code[0] ) ) { continue; } $new_code = "<script>document.addEventListener('DOMContentLoaded', () => { " . $code['content'] . "});</script>"; $buffer = str_replace( $code[0], $new_code, $buffer ); } return $buffer; } function buffer_start() { ob_start("callback"); } function buffer_end() { ob_end_flush(); } add_action('wp_loaded', 'buffer_start'); add_action('shutdown', 'buffer_end');
(inspired from https://katsarov.info/3-code-snippets-core-web-vitals/)
It might not be the most optimized way, but couldn’t find a better one, since some plugins add inline JS in different places.
Thanks again for your work and support.
Hi Mateusz,
Everything seems back to normal with this fix ??
Thanks a lot for your reactivity, and glad I could help!
YanOK, I tried to inspect all my sites a bit more and it turns out that if I DON’T check PNG files, I HAVE the error message, and if I check PNG files, everything is OK:
https://prnt.sc/y11va5
https://prnt.sc/y124fgIt happens on all my sites, regardless of hosting and WP versions or other plugins.
I asked my hostings and mod_rewrite is OK everywhere, and I can indeed use it in all my .htaccess files.
Same thing on fresh WP install with only WebP Converter activated.
Regarding your request:
1. Do you have any error on the plugin settings page? Enter error codes. Have you consulted your server administrator or developer?
Already mentionned above.
Yes I asked, everything is fine for him.2. URL of your website. If your site is not publicly available, add it to test environment.
https://wptest.pavenum.com3. Configuration of your server (link to it can be found on the settings page of plugin in the section “We are waiting for your message”) – please take a screenshot of the ENTIRE page and send it to me.
https://prnt.sc/y13m6b4. Settings of plugin – please take a screenshot of the ENTIRE page and send it to me.
https://prnt.sc/y13t185. Do you use CDN? If so, please see the question “Does the plugin support CDN?” in plugin FAQ.
NO6. Please do the test, which is described in the FAQ in question How to check if plugin works?. Please send a screenshot of Devtools with test results.
https://prnt.sc/y14k9u7. Content of your .htaccess files from directories /wp-content, /wp-content/uploads and /wp-content/uploads-webpc (pasting the code using the CODE shortcode in the editor).
/wp-content/:# BEGIN WebP Converter # ! --- DO NOT EDIT PREVIOUS LINE --- ! <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.* RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.webp [NC,T=image/webp,E=cache-control:no-cache,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.* RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.webp [NC,T=image/webp,E=cache-control:no-cache,L] </IfModule> # ! --- DO NOT EDIT NEXT LINE --- ! # END WebP Converter
/wp-content/uploads
# BEGIN WebP Converter # ! --- DO NOT EDIT PREVIOUS LINE --- ! <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpg.webp -f RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.* RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/uploads/$1.jpg.webp [NC,T=image/webp,E=cache-control:no-cache,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpeg.webp -f RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.* RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/uploads/$1.jpeg.webp [NC,T=image/webp,E=cache-control:no-cache,L] </IfModule> # ! --- DO NOT EDIT NEXT LINE --- ! # END WebP Converter
/wp-content/uploads-webpc:
# BEGIN WebP Converter # ! --- DO NOT EDIT PREVIOUS LINE --- ! <IfModule mod_mime.c> AddType image/webp .webp </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/webp "access plus 1 year" </IfModule> # ! --- DO NOT EDIT NEXT LINE --- ! # END WebP Converter
8. Do you use any plugin filters or actions from this FAQ? If so, list them all.
NO9. What plugin version are you using? If it is not the latest then update and check everything again.
2.310. Used WordPress version.
5.611. A list of all the plugins you use. Have you tried checking the plugin operation by turning off all others and activating the default theme? If not, please try whenever possible. This is very important because other plugins or themes can cause problems. Therefore, we recommend disabling all necessary plugins and enabling the default theme.
NO OTHER PLUGINForum: Plugins
In reply to: [WP Fastest Cache] Unblock Fast Velocity Minify plugin!!!Of course they are compatible, I’ve been using them together and it is working perfectly. Except of course when I need to save options ??
Hi,
Here are the screenshots…
UR deactivated: thumbnails view OK
https://prnt.sc/uxlu3mUR activated: list view OK, thumbnails EMPTY
https://prnt.sc/uxltpy
https://prnt.sc/uxlvr9
After a contributor uploads an image: only this image thumbnail is visible
https://prnt.sc/uxm0g5Same issue when inserting an image from page/article Gutenberg editor.
Thanks for investigating!
Just sent the URL on QSM support form.
Thx!Hi,
I have latest version installed (7.1.3), and problem is still here.
I think fix was only for single answer (radio button) but not for multiple.
Please check correction.Yan
Hi,
Here is backend question 2: https://prnt.sc/ur2ireNote that if I remove the quote character from the answser, it is working fine:
https://prnt.sc/ur2jwnHere are two screenshots on a fresh WP install.
https://prnt.sc/upy4qp
https://prnt.sc/upy41oFirst one is my answers, second one is results.
You can see that first answer of question 2 should be checked.With question 1 (radio), it is working fine.