This topic has 6 replies, 5 voices, and was last updated 11 years by SQadmin.

  • Author
  • #3068
     Cenk
    Participant

    Do you know a way to link the avatar on the member (search) page? Making it clickable like the name.

    Thank you for your support,

    Cenk

    #3071
     Andrei
    Moderator

    Hello Cenk,

    I’m supposingly you work with a child theme ( that’s recommended ).

    Copy “members-loop.php” and “members-loop-mini.php” from “sweetdate/members” to “sweetdate-child/members”

    – edit “members-loop.php – around line 28” and “members-loop-mini.php – around line 31”
    – search for

    COPY CODE
    <?php bp_member_avatar('type=full&width=94&height=94&class='); ?>

    – replace it with:

    COPY CODE
    <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar('type=full&width=94&height=94&class='); ?></a>

    Hope this resolve your problem !

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #4768
     notime
    Participant

    I replaced the code above with the replacement code and got errors.

    #5028
     adam
    Participant

    didn’t work for me either 🙁

    #5121
     adam
    Participant

    ok, i got this working. i had to delete the rel=”nofollow” and just use
    < a href=”<?php bp_member_permalink(); ?>”>

    hope that piece of code isn’t important? 🙂

    thanks @andrew!

    #5122
     adam
    Participant

    p.s. how do you get your code to show up nicely on this forum? not sure how to get that code box to appear.

    #5632
     SQadmin
    Keymaster

    Hi, add your code inside “pre” tags

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?