Skip to content
Public Ticket #9728

Duplicate author avatars when Lazy load images is active

Conversation thread

Penci Design replied

Staff Reply

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

ICEknigh7 replied

Customer Reply

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

ICEknigh7 replied

Customer Reply

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

Penci Design replied

Staff Reply

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

ICEknigh7 replied

Customer Reply

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.

Penci Design replied

Staff Reply

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

ICEknigh7 replied

Customer Reply

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.

Penci Design replied

Staff Reply

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

ICEknigh7 replied

Customer Reply

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.

ICEknigh7 replied

Customer Reply

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.

Penci Design replied

Staff Reply

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

ICEknigh7 replied

Customer Reply

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.

Penci Design replied

Staff Reply

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

ICEknigh7 started the conversation

Conversation Start

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?

Want to join this conversation or access attachments? Sign in first.