Hello,
I searched in this forum and in WPML forum.
The standard language of my website is german. When I change to another language, the blog thumbnails don’t have the same size.
The plugin “regenerate thumbnails” and similar plugins didn’t help.
I found out, that this code is the reason:
if(strpos( $url, home_url() ) === false) {
$image = array (
0 => $url,
1 => $width,
2 => $height
);
return $image;
}
I found this code in /includes/plugin/aq_resizer-1x.php and /includes/plugin/aq_resizer-2x.php
When I comment this code, then it works perfect and all thumbnails are in all languages, as supposed in the right size.
So. Now I found this topic in forum of another theme:
WPML / One of your php scripts
This solution is from October 14, 2014.
Why is there stil a problem in Neighborhood theme, probably also in other themes of you?
Isn’t there a better solution instead of comment the code above out, or to change this:
if(strpos( $url, home_url() ) === false) {
Change to :-
if(strpos( $url, 'http://www.example.com/' ) === false) {
After the next update everything is overwritten.
So, this is very provisionally.
How can we solve the problem certainly?
Perhaps something into the functions.php in the child-theme?
Or better for everybody: a solution of you in the next theme update?
Thank you!
Best regards,
Elec