Hi there, I have been looking around in the General Template Tags in https://codex.buddypress.org/ for the right tag for edit my profile groups/fields, ul.button-nav li a.
According to the documentation
bp_get_options_nav()
should be the one, but it is not.“for profile it contains: [Public, Edit Profile, Change Avatar]”
Which tag should I use to target and reposition this group with a hook?
Regards
CarstenHi Carsten,
Thank you for the question.You can use this inside the profile loop
<?php bp_profile_group_tabs(); ?>
Also, you do not need to add it via any hook. You can use template override.Adding content via hooks are normally preferred when you don’t have much control over the template.
Regards
BrajeshHi Carsten,
When I say template override, It means copying the specific template to your theme/child theme form the BuddyPress template pack and modifying as you please.That way you get more flexibility.
Regards
BrajeshHi Brajesh, so the position of the tabs is defined by where in the profile loop it is copied into?
I think I have asked this question before, but something is stil not clear to me; what about the original position of the tabs, should I just hide them with css, or should the code be deleted from the profile loop?
Thanks
Hi Carsten,
I am glad you solved it.My suggestion for future is to take a look at the template pack code. That will give you better insight and help in solving many issues.
Regards
Brajesh
You must be logged in to reply to this topic.