Hi @zee_dee,
Thank you for your message.
Tell me, have you read the plugin FAQ? There are answers to many questions. Remember to always read the FAQ plugs and other similar thread before adding in the support thread.
Many problems can be solved without adding a thread, because the issue has already been raised in the FAQ or other thread. And that saves a lot of time. I will be grateful if you understand me and appreciate your and my time. I work on plugins in my free time. I am alone and there are more and more users of the plugin.
Problems are often repetitive. They often result from a custom server or page configuration. That is why I am asking you to try to find a solution in the FAQ or other forum threads. I can not write back to every person the same things. I try to develop a FAQ so that everyone can find answers to repetitive problems.
There is even a special question in the FAQ that has a list of things I need to help you. The information that something is not working or I have some error, unfortunately, does not allow me to help because I know nothing about your website. With more people using plugin, I would know if there was a global problem.
Please read the entire FAQ carefully and look at other threads in this forum. If you can not find anything that you contact me please, providing me all the information you need.
And I have one more request – let me know when the problem is resolved. Unfortunately, many people I try to help after receiving a solution will not even inform you that it worked. And this helps me a lot in providing better and better technical support.
I found an answer but I need your assistance.
Here is the following filter which I should add to end of functions.php page.
Directory path with converted WebP files (relative to the root directory):
add_filter('webpc_uploads_webp', function($path) {
return 'wp-content/uploads-webpc';
});
And I should change the path to:
add_filter('webpc_uploads_webp', function($path) {
return 'public_html/t.tefida.com/';
});
Am I correct?
Regards
Michael
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
How did he modify the location of the files from the media library?
And again, please send me the information I requested. Without them I can not help you. First of all, I need server configuration. Please read the FAQ question for the list of information I need.
Hello, how to change the path that Webp Plugin used by default to adding converted webp images?
By default Plugin used following path:
public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.com/2020/06
I need the following:
public_html/t.tefida.com/2020/06
Regards
Michael
@zee_dee, tell me please, did you read my message above?
Sure, I’ve changed it by myself, and now all my images upload to the t.tefida.com folder, and to this message I attach the screenshot of server configuration.
http://prnt.sc/t6et57
Regards
Michael
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
Actually don’t, I move all my new converted images to t.tefida.com over Cpanel by manually.
Plugin used the following path for newerly converted images by default:
public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.com/2020/06
I need that newerly converted images were into:
/public_html/t.tefida.com/2020/06
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
The converted images can not be in the same directory as original. This option is blocked.
Yes, it can, after installation and activation plugin first time it converts all my images which were in *.png and *.jpg format into *.webp into the same directory as original images.
And now all my new added images plugin automatically move to the following directory:
public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.com/2020/06
I need that plugin adds converter images to the same directory as the original files with images.
First and the main reason why to do it is the path of images.
—-=Example:=—-
When I add images to the published materials I wrote the next line:
https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg
but when I write https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg.webp it does not works cause image has different path as exactly
public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.com/2020/06
And I cannot use it.
My steps to solve this problem: go to Cpanel and manually move images from the mentioned directory above to the directory with original images. And after that, I can use following path:
https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg.webp
How to make that converter *.webp images save to the same directory with uploaded *.jpg and *.png images?
Regards
Michael
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
The converted images can not be in the same directory as original.
That’s exactly what I need.
How to do it?
-
This reply was modified 5 years, 9 months ago by
Zee_Dee.
Tell me please what is incomprehensible in my answer? The plugin saves files in a separate directory. This is how the plugin works and cannot be changed. This is done for the safety of users. Thanks to this, I am sure that the plugin will never damage the original files.