Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kylereicks

    (@kylereicks)

    It looks like the source elements are in the wrong order. They are appearing as small, extra small, and post thumbnail. It looks like small and extra small have been reversed.

    If you are able, please post the code you are using in your theme to customize the plugin. That way I can see if it is a bug in the plugin or if there is something that needs to be addressed in the documentation.

    I apologize for the lack of clarity on the GitHub page. I have since added a note on the two versions so hopefully the documentation for version 1.3 is a little easier to find. https://github.com/kylereicks/picturefill.js.wp/tree/1.3.x

    Thanks very much for reporting the issue.

    Thread Starter Zach Atkinson

    (@z_atk)

    Hi Kyle,

    Thanks for your time on this – code as follows:

    function lc_custom_image_setup () {
        if(defined('PICTUREFILL_WP_VERSION')){
            picturefill_wp_add_image_size('extra-small', 480, 9999, false, 'small');
            picturefill_wp_add_image_size('small', 768, 9999, false, 'medium');
    
            picturefill_wp_set_responsive_image_sizes(array('thumbnail', 'extra-small', 'small', 'medium', 'large'));
            apply_picturefill_wp('widget_text');
            apply_picturefill_wp_to_post_thumbnail();
    
        }
        else{
            add_image_size('extra-small', 480, 9999, false);
            add_image_size('small', 768, 9999, false);
    
        }
    }
    add_action( 'after_setup_theme', 'lc_custom_image_setup' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘1.3.5 Broke my Post Thumbnails’ is closed to new replies.