New Landing How can we help? Themeforest Theme Support Neighborhood WPML Problem with thumbnails

Viewing 2 posts - 1 through 2 (of 2 total)
  • #211698
    elecsander
    Member
    Post count: 17

    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

    #212063
    David Martin – Support
    Moderator
    Post count: 20834

    Hey Elec,

    Can you post a link and a WP login so we can view where this is happening.

    It seems strange for WPML to change the image sizes, we will need to investigate this.

    -David.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register