This topic has 5 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #193278
     Steeley1
    Participant

    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.

    https://archived.seventhqueen.com/sweetdate/article/make-profile-tab-default-instead-activity-tab-user-profile

    Thank you

    #193306
     Radu
    Moderator

    Hi,

    Where did you had pasted that code ?

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #193321
     Steeley1
    Participant

    LOL.. The wp-config and then I tried the bp-custom-php. Are you asking because I should have placed it somewhere different?

    #193324
     Radu
    Moderator

    Hi,
    OK,

    Move that line into child theme in functions.php if still not works try with this snippet

    COPY CODE
    
    function 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' );
    

    source : https://buddydev.com/buddypress/changing-default-component-for-buddypress-user-profile-based-on-context/

    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
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #193817
     Steeley1
    Participant

    Hi Radu

    The code worked in functions.php.

    Thank you.

    #193833
     Radu
    Moderator

    Great
    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?