This topic has 4 replies, 2 voices, and was last updated 6 years by Radu.

  • Author
  • #190904
     alexhorie
    Participant

    Hello, i trying to add a ad or a text in my members directory page, but i go to the page, i edit and nothings shows in the page when i update.

    how can i do that?

    #190964
     Radu
    Moderator

    Hi,

    Where more exactly before the memebrs directory or after ?

    It may not works because it’s populated dynamically with buddypress content.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #190966
     Radu
    Moderator

    You can test this snippet

    COPY CODE
    
    function sq7r_add_content_members_page_bp() {
    
        $content = '
            <div class="container">
                <h3>My Content</h3>
            </div>
        ';
        echo $content;
    }
    
    //add_action('bp_directory_members_content', 'sq7r_add_content_members_page_bp');
    //add_action('bp_after_directory_members_content', 'sq7r_add_content_members_page_bp');
    add_action('bp_after_directory_members', 'sq7r_add_content_members_page_bp');
    

    De commenting the add_action and testing will add the content to different possitions

    The code can be added in child theme in functions.php file.

    Cheers
    R.

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

    Thank you!!

    #191467
     Radu
    Moderator

    You’re welcome
    Cheers
    R

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?