• Resolved akofoed

    (@akofoed)


    Hi,

    I’ve been trying to figure out how to remove the link on the avatar, so it is just a un-clickable avatar added?

    when clicking avatars i get to a page called domain.com/?mt_pp=1609 e.g. for one user, and i don’t want that.

    e.g. in content-single.php i have this:
    if (function_exists ( ‘mt_profile_img’ ) ) {
    $author_id=$post->post_author;
    mt_profile_img( $author_id, array(
    ‘size’ => ‘thumbnail’,
    ‘attr’ => array( ‘alt’ => ‘Alternative Text’ ),
    ‘echo’ => true )
    );
    }

    how to change it?
    I been looking in the metronet-profile-picture.php file without luck.

    thanks!

    https://wordpress.org/plugins/metronet-profile-picture/

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

    (@ronalfy)

    Wow, weird. Not sure why you’re getting a link. You should only be getting the img element.

    I’ll try to duplicate, but maybe this approach will help you. https://wordpress.org/support/topic/receiving-only-the-avatar-url?replies=3

    Thread Starter akofoed

    (@akofoed)

    Well the idea is to change the avatar, so when clicking on it, nothing happens.

    The other solution did not solve the problem

    Plugin Author Ronald Huereca

    (@ronalfy)

    I’m sorry, I guess I don’t understand how you are getting a link.

    mt_profile_image is just a wrapper for get_the_post_thumbnail, and neither return a link unless some other code (plugin,theme) is creating a link using the post_thumbnail_html filter.

    Thread Starter akofoed

    (@akofoed)

    please see here: http://dev.millwardbrownnordic.com/blog/your-monthly-creative-treat-lifes-better-when-were-connected/

    when you click on the avatar, you get directed to http://dev.millwardbrownnordic.com/?mt_pp=1609 but i don’t want the picture to do so, in the code, it is the plugin that doing so?

    i have checked all theme settings thru and not found any avatar link settings. also the link ?mt_pp= is a refer of the plugin not the theme or wordpress.

    Plugin Author Ronald Huereca

    (@ronalfy)

    Sorry for the delay, for some reason I didn’t get an e-mail alert to your reply.

    I just committed 1.2.3, which should hopefully resolve this thread.

    I noticed a few things from your support request.

    1. The post type I use should be 100% hidden, but it wasn’t.
    2. The possibility of someone able to filter the output was causing some unexpected results.

    I fixed the post type so it is now 100% hidden. The permalink you had should now 404, which is what should happen with a hidden post type.

    I also refactored the mt_profile_img function so that there is no output filter unless you use the one I supply.

    Please let me know if this update resolves the issues.

    Plugin Author Ronald Huereca

    (@ronalfy)

    akofoed,

    I’m going to mark this as resolved since this should now be fixed. Please feel free to reply if otherwise.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘remove link from avatar picture?’ is closed to new replies.