Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Alberto Medina

    (@albertomedina)

    Is that URL using the Gravatar plugin in non-AMP mode?

    It may be the shortcode added buy that plugin introduces a loader that depends on JS. Can you verify that?

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Is that URL using the Gravatar plugin in non-AMP mode?
    –> yes, but without AMP in the URL

    It may be the shortcode added buy that plugin introduces a loader that depends on JS. Can you verify that?
    –> not sure what you mean. There is no shortcode in use as far as I know.

    I tryed to alter the code in templates/meta-author.php in

    <?php $post_author = $this->get( 'post_author' ); ?> 
    <li class="amp-wp-byline"> 
    <amp-img src="<?php echo get_wp_user_avatar_src(get_the_author_meta('ID'), 24); ?> 
    " width="24" height="24" layout="fixed"> 
    </amp-img> 
    <span class="amp-wp-author"><?php echo esc_html( $post_author->display_name ); ?></span> 
    </li>

    but the gravatar Connection is still there

    Thanks for your help

    Plugin Author Weston Ruter

    (@westonruter)

    The problem is that the WP User Avatar plugin is filtering the avatar via:

    add_filter('get_avatar', array($this, 'wpua_get_avatar_filter'), 10, 5);

    But this is too high-level. Since the AMP plugin uses get_avatar_url() to get the underlying image URL, the WP User Avatar plugin needs to instead use the get_avatar_data filter.

    I suggest opening an issue on their plugin forum.

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    OK. Thanks for your help

    MMS JNoori

    (@thecollegestudy)

    Plugin-Author, can i hide author pic and published time below the post title?

    • This reply was modified 5 years, 10 months ago by MMS JNoori.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Author pic below title’ is closed to new replies.