-
Author
-
March 8, 2018 at 07:30 #190904alexhorieParticipant
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?
March 8, 2018 at 18:06 #190964RaduModeratorHi,
Where more exactly before the memebrs directory or after ?
It may not works because it’s populated dynamically with buddypress content.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 8, 2018 at 18:15 #190966RaduModeratorYou can test this snippet
COPY CODEfunction 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 solutionMarch 12, 2018 at 15:21 #191467RaduModeratorYou’re welcome
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.