ms100
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Question about raw acces logHi @gappiah thank you for the reply.
Given the other requests from the same IP, I am quite sure it was a hacker.
I was a bit scared he had gotten in, and later removed the /wp-login.php file, so that the hacker does not leave a trace behind.
But I think it is more likely that indeed the web server (cPanel) or any other server setting served a 200 (probably just a blank page).
Thanks again George.Forum: Plugins
In reply to: [WooCommerce] HTTP Request”user-agent”: “WooCommerce/9.6.0”Thanks a lot @babylon1999 Saif!
Would it (not) make sense to use de Maxminddatabase, if installed?
That would not require en external request?
Might be faster, maybe safer, I don’t know ??Forum: Plugins
In reply to: [WooCommerce] Have to tap twice on a product to open it on mobile@doublezed2 I am not the one who created this topic. I only shared my thought. I shall not interfere anymore. I apologize for the confusion.
Forum: Plugins
In reply to: [WooCommerce] Have to tap twice on a product to open it on mobileMaybe you need to wait longer after the first tap, because the page is loading
Hello @wpmansour
Thanks for the reply, I have added the line you suggested.
Would you also suggest to do this?<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|webp|swf|svg+xml)$">
Header set Cache-Control "public"
</filesMatch>Default is:
<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|webp|swf)$">
Header set Cache-Control "public"
</filesMatch>Thanks again.
Forum: Plugins
In reply to: [Yoast SEO] Product Category doesn’t show og:image@delisle Maybe there was no image on your page and therefor you needed to add it manually.
I think if there is an image on the page, Yoast will use it (also on product-category-pages) ???Forum: Plugins
In reply to: [Yoast SEO] Product Category doesn’t show og:imageHi,
In my case, it seems like the images are added by the plugin when it’s a product-page, but not when it’s a product-category-page.Forum: Plugins
In reply to: [Acumulus] Uit de luchtBedankt voor de info @leemshop
Het zou mooi zijn als de server er in de toekomst uit ligt, dat de plugin dan automatisch wordt gedeactiveerd (of iets dergelijks) om een site crash te voorkomen.Forum: Plugins
In reply to: [Acumulus] Uit de luchtBij onze shop doet hij het weer en kan de plugin weer geactiveerd worden ???
I am not an educated coder but this seems to work…!
// WP Optimize
if (class_exists(‘WP_Optimize’) && is_callable(array(‘WP_Optimize’, ‘get_page_cache’), ‘purge’)) {
WP_Optimize()->get_page_cache()->purge();
}Hello Shameem,
Your reply definitely provides clarity.
Good to read the dev team is aware.
Thanks for explaining that manually adding the ‘loading=”lazy”‘ attribute to the WooCommerce featured category block would require custom coding.
I’ll mark as resolved, have great day.
Hi carolm29,
Thanks for trying to replicate this on your website.
Please make sure to add (more than) enough content above the woo blocks, so they are considered to be lazy loaded.
Yes it’s the Astra theme, but I got the same warning using the Storefront theme.
Please use this complete report.
Hello Zubair Zahid,
Thanks for your reply.
Here is a test-environment example, I have made to demonstrate it to you:
https://www.temporary-url.com/3EF2E1I think it will be more helpful than a system report.
You can just add a lot of images to your own testing page.
Then add a some Woo featured category, or Woo featured product blocks.
Then run Google pagespeed test.You will most likely see the warning, that the images in the Woo blocks should be lazy-loaded.
So my idea is that the blocks can be developed in such a way, that they work in conjunction with the native WordPress lazy load feature.
Best regards.
The theme I’m using is Astra. Images get lazy loaded very well, except the WooCommerce blocks background images.
(I think these are the ones with class=”wc-block-featured-category__background-image”.)
So possibly the Woo blocks could be coded in a way that the native lazy load picks up the images and adds the loading=”lazy” attribute automatically.
Or I could maybe add loading=”lazy” manually in the Woo blocks page code.
Or maybe a PHP snippet (like the example in the thread link you gave) could achieve it, something like:
Function set attribute loading=”lazy” IF class=”wc-block-featured-category__background-image”Thanks again.
P.S. The Storefront theme does not seem to lazy load the Woo blocks background images either
Hi Stef,
Thanks for your reply.
Yes I did to that (in the past), I know it works by the WP Rocket plugin using some javascript to add the loading=”lazy” attribute to the WooCommerce blocks.
I am wondering if there is a way to add the loading=”lazy” attribute to the woocommerce featured category block manually? (without the use of a plugin)
So I can make the woocommerce featured category block work with the native WordPress Lazy Load feature ??