Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add a button next to ‘Private Messaging’ to link to an existing page?


  • lindsaybwd
    Participant

    @lindsaybwd

    Can someone please assist in how I can create a specific button next to ‘Private Messaging’ to link to an existing page?

Viewing 2 replies - 1 through 2 (of 2 total)

  • shanebp
    Moderator

    @shanebp

    If you mean the Private Message button at the top of a profile page, then place this code in bp-custom.php or in your theme > functions.php

    function lindsay_profile_button() {
    ?>
    	<div class="generic-button"><a href="https://google.com" >go to google</a></div>
    <?php
    }
    add_action( 'bp_member_header_actions', 'lindsay_profile_button', 25 );

    If ‘Private Messaging’ means something else, then you need to talk to the creators of that code because it does not come from BuddyPress.


    lindsaybwd
    Participant

    @lindsaybwd

    Hello Shane,

    Thank you for your input.
    I’ll give it a try and let you know if it works out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar