problem with showing webp url
-
hello i installed your plugin and after i converted all imgs
now how i can show it
i added in function.php this filters :add_filter('webpc_uploads_root', function($path) { return ABSPATH; }); add_filter('webpc_uploads_path', function($path) { return 'site/assets/uploads'; }); add_filter('webpc_uploads_webp', function($path) { return 'site/assets/uploads-webpc'; }); add_filter('webpc_uploads_prefix', function($prefix) { return '/'; });
but it dosn’t work for me and img still in old url not webp
my upload path is like :
website.com/cdn/site/assets/uploads
and i installed wordpress in this directory
website.com/cdn
and iam using website url as main dir for home page of wordpress
website.com/
and another question with .htaccess do we need to edit the main .htaccess of wordpress ?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘problem with showing webp url’ is closed to new replies.