• Resolved King Ding

    (@dazzerr)


    Hello,

    Is it possible to make the points that are shown on a buddypress profile clickable? For example, as a user on my website, I would like the ability to click my points and link me to another page such as a points breakdown, or rewards catalogue.

    Thanks!
    – D

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ruben Garcia

    (@rubengc)

    Hi @dazzerr

    Actually this is not possible yet

    The unique way you can get this is through custom code

    We don’t offer support for customizations but any WordPress custom development agency or freelance can handle it for you

    If you don’t know one there is our trusted consultants list that can handle it for you:
    https://gamipress.com/consultants

    Best regards

    Thread Starter King Ding

    (@dazzerr)

    Not quite the answer I was hoping for since it wasn’t too difficult after all.

    For anyone else looking for the answer, you can drop this into your child themes functions.php:

    add_action('wp_head', 'custom_gami_link', 10);
    function custom_gami_link(){
    ?>
    <script type="text/javascript">
    jQuery(document).ready(function(){
        jQuery('.gamipress-buddypress-point').wrap('<a href="## YOUR URL HERE ##"></a>');
    });
    </script>
    <?php
    }

    You can replace “.gamipress-buddypress-point” with any div of your choosing.

    If anyone has any recommendations on how to improve my approach, then please feel free to share your ways 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clickable Points’ is closed to new replies.