• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

Link Author Avatar To BuddyPress Members Profile Page

This code adds the author avatar in the entry header and links the avatar image to the members profile page.

You can change the hook to change the location you want to display the avatar.

The code works in conjunction with BuddyPress and also enables you to link the members avatar to any page in BuddyPress simply by including the slug in the code.

If you want to change the link, you can simply change the value for the $profile_page variable.

Here’s the code for logged in members:

Register for full access

Related Tutorials

  • Link Author Gravatar To Author Archive Page

BuddyPress

Reader Interactions

Comments

  1. jmelee1221 says

    August 20, 2017 at 7:56 pm

    Do you know any reason that a BuddyPress profile picture would show up blurry when linked to the Author Page? Like this >> http://weheartthis.com/author/stef/

    Log in to Reply
    • Brad Dalton says

      August 20, 2017 at 8:13 pm

      I would make sure the original is exactly the same size before uploading it. Looks like its smaller and being stretched using CSS.

      Log in to Reply
      • jmelee1221 says

        August 20, 2017 at 8:22 pm

        Thats what is weird. The image is way bigger than the box and it keeps loading blurry when in the author part. When I deactivate BuddyPress it is clear, so I am not sure anymore.

        Log in to Reply
        • Brad Dalton says

          August 20, 2017 at 8:31 pm

          BP have cropped the image to 50px and then stretched it. Thats why its blurry.

          Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags