Support » Plugin: AMP » Author pic below title

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

    (@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?

    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.

    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 3 months, 3 weeks ago by  MMS JNoori.
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.