Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2176073
Duplicate author avatars when Lazy load images is active
Closed

Comments

  •  1
    ICEknigh7 started the conversation

    The author avatar below the post contents is appearing twice when Jetpack's "Lazy load images" feature is active.

    Is there a way to fix this?

  •  501
    Penci replied

    Hi,

    I checked on your site and add custom css to style.css on child theme  fix the issue.

    .penci-post-author .author-img img + img {
    display: none !important;
    }

    http://prntscr.com/pg8fqy

    Please check it again


    Best Regards,

    PenciDesign


  •  1
    ICEknigh7 replied

    The point of "lazy load" is not to load the images until they appear on screen, and the theme is loading it twice instead, defeating the point.

    Hiding one of them after been loaded is not a fix to the problem, the image needs to just be loaded once.

  •  501
    Penci replied

    Hi,

    the issue come from Jetpack plugin.

    Jetpack create add more avatar as screenshot http://prntscr.com/pgpstn and I don't find option to remove avatar come from Jetpack

    Best Regards,

    PenciDesign

  •  1
    ICEknigh7 replied

    I've found a "Disable Lazyload" option enabled by default in Customize -> General Options. I don't quite understand why such an option exists.

    Anyway, I disabled it but the avatar still shows duplicated.

  •  1
    ICEknigh7 replied

    This might be a problem with Jetpack, seeing how "lazy load" seems to work correctly when using other plugins, so I'll just be using those instead.

  •  501
    Penci replied

    Hi,

    The "Disable lazyload" option to enable or disable. When you check the button. The all image  on your site will show on load website.

    I checked on your site . The avatar only show one image. 

    Best Regards,

    PenciDesign

  •  1
    ICEknigh7 replied

    I couldn't understand your first paragraph, sorry. Does PenNews have its own "Lazy load"?

    It shows one image only because I'm using a different plugin now, as I said.

  •  501
    Penci replied

    Hi,

    If you check "Disable Lazyload" option.  lazy load module is not load on your site.

    Don't worry about the issue.

    The avatar only show one image. 


    Best Regards,

    PenciDesign

  •  1
    ICEknigh7 replied

    Does PenNews have its own Lazy load or does that option disable the Lazy load used by other plugins?

    The avatar shows two images when using Jetpack's Lazy load but works properly with other plugins', I already explained.

  •  501
    Penci replied

    Hi,

    The "Disable Lazyload" option on pennews theme only disable lazy load module come from PenNews, it not disable the Lazy load used by other plugins.


    Best Regards,

    PenciDesign

  •  1
    ICEknigh7 replied

    Thank you, that's what I needed to know. This can be closed.

  •  1
    ICEknigh7 replied

    Somebody has just pointed this out, which might help fix this issue:

    Jetpack’s lazy loading does actually print an extra avatar, but it’s placed between <noscript> tags. If your theme than uses wp_kses_post to escape scripts, it apparently also removes the <noscript> tags, hence making a second author image visible immediately after the original one.

    https://wordpress.org/support/topic/author-image-signature-displayed-twice-after-a-post/#post-12096318

  •  501
    Penci replied

    Hi,

    Thank you for your all feedback.

    I will check  the  solution and update the fix to the nextupdate version of PenNews theme.


    Best Regards,

    PenciDesign