i am looking to make custom template for profile page which file to edit???
See in bp-templates/bp-legacy/buddypress/members/single
and read here for some general guidance. Note: even if only Twenty theme are described as example, you can use (more or less) the same technique for any other theme.
What ever, all starts by creating a child-theme as very first step.
Related to your question, do drop down list of the sub nav and hide them in the object nav fields, i think you don’t need to alter a template, but to write a custom function.
As i can be wrong about you goal, perhaps take also a look to core file bp-core/bp-core-buddybar.php to understand how nav and subnav are instanciated.
Read also https://codex.buddypress.org/developer/navigation-api/
thanks for replying mate yeah i am sort of looking to make my own custom template for the profile page yeah i understand the child theme process i have already done it plus even after reading all the bp files i was unsure to use which one as a base file to add my own styles to it thanks for helping though i ll get back to you once i try your suggestions
and bro one more thing can you point me out to which specific file should i look at too edit the styling for the object nav and sub nav
See CSS file in bp-templates/bp-legacy/css/buddypress.css and copy it to your buddypress folder in the child.
BuddyPress Theme Development
cheers bro i ll get back to after some customisation