-
Author
-
March 28, 2018 at 10:44 #193278Steeley1Participant
Hi there
I am having issues changing my activity stream to profile when someone clicks on the profile tab.
I have followed your instructions but it makes no difference, is there something I am not doing?
Here is the link to your article regarding making the changes.
Thank you
March 28, 2018 at 16:44 #193306RaduModeratorHi,
Where did you had pasted that code ?
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 28, 2018 at 18:00 #193321Steeley1ParticipantLOL.. The wp-config and then I tried the bp-custom-php. Are you asking because I should have placed it somewhere different?
March 28, 2018 at 18:29 #193324RaduModeratorHi,
OK,Move that line into child theme in functions.php if still not works try with this snippet
COPY CODEfunction buddydev_set_default_component () { if ( bp_is_my_profile() ) { define ( 'BP_DEFAULT_COMPONENT', 'activity' ); } else { define ( 'BP_DEFAULT_COMPONENT', 'profile' ); } } add_action( 'bp_core_setup_globals', 'buddydev_set_default_component' );
If still have issues move back the code to wp-config.php or bp-custom.php and switch to a default theme see if it works if not it means that comes from buddypress
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 4, 2018 at 18:54 #193817Steeley1ParticipantHi Radu
The code worked in functions.php.
Thank you.
April 4, 2018 at 19:14 #193833RaduModeratorGreat
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.