-
Author
-
June 29, 2014 at 01:38 #21222
iamj_kim
ParticipantHi,
When I add text to the members page, it doesn’t show up. I want it to show above the members listing in the in the members Directory. How can I do that? Thanks.
June 29, 2014 at 01:51 #21223iamj_kim
ParticipantI found this link http://premium.wpmudev.org/forums/topic/how-to-add-descriptive-text-to-top-of-buddypress-pages . Is this the only way to accomplish this? what if I want to add shortcodes above the members directory or a desriptive box? Is it possible or does it need to be hard coded?
June 30, 2014 at 15:38 #21273Catalin
ModeratorHello,
Please add this code:
COPY CODEfunction add_custom_text_after_directory_members (){ echo 'CUSTOM TEXT'; } add_action(' bp_after_directory_members', 'add_custom_text_after_directory_members');
to your functions.php file from the child theme folder.
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 3, 2014 at 08:25 #21600iamj_kim
ParticipantWell, that didn’t work for me… I’d like to type text (or shortcode) into the Edit Page Members and have it show up above the members photos in the members directory. Am I doing something wrong?
July 3, 2014 at 12:57 #21623Catalin
ModeratorHello,
The members page template is generated by BuddyPress core and cannot be modified by adding content in the content field from edit page area.
I tested the code and it works. You just need add this in the functions.php file from your child theme.
I can do that for you if you provide me FTP credentials. If so, reply message as private for security reasons.
Also, give me the text you want to add.
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 8, 2014 at 02:20 #21960iamj_kim
ParticipantHello Catalin,
Any chance you were able to help me make this change? Let me know if you were unable to get into the site. Thanks!
July 8, 2014 at 12:03 #21973Catalin
ModeratorHello,
Please check now.
You can replace “Custom text” with what you need. You can do that in functions.php from your child theme.
Let me know if this works.
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 9, 2014 at 09:35 #22066iamj_kim
ParticipantHello Catalin,
That worked perfectly. Unfortunately, I wanted to put it before the members directory, not after. But, with your code as a guide, I found the solution by replacing bp_after_directory_members with bp_before_members_loop. So thank you very much!. Now I just need to figure out how to generate a shortcode there 🙂
July 9, 2014 at 10:34 #22067Catalin
ModeratorHello,
Take a look at this link:
http://codex.wordpress.org/Function_Reference/do_shortcode
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The topic ‘Add Text Above Members in Members Directory’ is closed to new replies.