• Hey Alex,

    that may be a stupid question, but when the plugin ist activated, the responsive image function with srcset and width disappears from the thumnails and even on smaller viewports always the biggest picture is shown.

    Am I doing or getting something wrong?

    Best regards

    David

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author alpipego

    (@alpipego)

    Hi David,
    Thank you for your bug report. The srcset and the sizes attributes should not be interfered with by the plugin (or any other attributes for that matter).

    Are these getting added by the theme or is there some other plugin involved in adding these attributes. If it is the theme, could you maybe provide me a link to a (free) theme or a copy of it either via slack @alpipego or email [email protected]?

    For completeness, could you please also tell me what versions of WordPress and ResizeFly you are running?

    Thank you,
    Alex

    • This reply was modified 5 years, 1 month ago by alpipego.
    Thread Starter David Stingl

    (@berlindave)

    Thank you, Alex, for your prompt reply.

    I tested again with disabling all other plugins except ResizeFly, same issue.

    The theme is: https://themezee.com/de/themes/harrison/
    WP 5.3.2, ResizeFly 3.1.4

    Thank you,
    David

    Plugin Author alpipego

    (@alpipego)

    Unfortunately, I can’t reproduce this. The content I have in an editor is

    
    <img class="alignnone size-large wp-image-76" src="https://wp.version/wp-content/uploads/2018/12/image-1024x538.jpg" alt="" width="1024" height="538">
    

    and the output in the frontend – with Harrison as the active theme and ResizeFly as the only activated plugin – is:

    
    <img class="alignnone size-large wp-image-76" src="https://wp.version/wp-content/uploads/resizefly/2018/12/[email protected]" alt="" srcset="https://wp.version/wp-content/uploads/resizefly/2018/12/[email protected] 1024w, https://wp.version/wp-content/uploads/resizefly/2018/12/[email protected] 300w, https://wp.version/wp-content/uploads/resizefly/2018/12/[email protected] 768w, https://wp.version/wp-content/uploads/resizefly/2018/12/[email protected] 1536w, https://wp.version/wp-content/uploads/resizefly/2018/12/[email protected] 2048w" sizes="(max-width: 1024px) 100vw, 1024px" width="1024" height="538">
    

    So when you disable ResizeFly you correctly get the srcset but once it is enabled the attribute is missing?

    Sorry that I can’t provide an easy solution as of now.

    • This reply was modified 5 years, 1 month ago by alpipego. Reason: update code tags
    Thread Starter David Stingl

    (@berlindave)

    Did you test it also with a featured image resp. post thumbnail?

    Plugin Author alpipego

    (@alpipego)

    I did just now, this also shows up correctly

    
    <img src="https://wp.version/wp-content/uploads/2019/06/candice-picard-1127616-unsplash.jpg" class="attachment-harrison-featured-header-image size-harrison-featured-header-image wp-post-image" alt="" srcset="https://wp.version/wp-content/uploads/2019/06/candice-picard-1127616-unsplash.jpg 5283w, https://wp.version/wp-content/uploads/resizefly/2019/06/[email protected] 300w, https://wp.version/wp-content/uploads/resizefly/2019/06/[email protected] 768w, https://wp.version/wp-content/uploads/resizefly/2019/06/[email protected] 1024w, https://wp.version/wp-content/uploads/resizefly/2019/06/[email protected] 1568w" sizes="(max-width: 900px) 100vw, 900px" width="900" height="600">
    
    Thread Starter David Stingl

    (@berlindave)

    Very weird. This is what I get:

    <img width="1440" height="600" src="https://harrison.test-raum.de/wp-content/uploads/resizefly/2019/12/[email protected]" class="attachment-harrison-featured-header-image size-harrison-featured-header-image wp-post-image" alt="">

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘‘srcset’ disappearing’ is closed to new replies.