This topic has 6 replies, 2 voices, and was last updated 9 years by HDcms.

  • Author
  • #52253
     HDcms
    Participant

    Hi,
    How to hide items (see picture) by level of paidmemberPro ?
    Regards

    Attachments:
    You must be logged in to view attached files.
    #52378
     Andrei
    Moderator

    You will have to edit the buddypress user profile templates from our theme and add the respective logic to show them just in some cases. Please note that you’ll need programming skills in order to do so.

    Cheers

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

    Hi,
    no hook to put in functions.php !!
    What file should I put in my child theme ?
    Thanks

    #52381
     Andrei
    Moderator

    The quick navigation links are added with the following hook:

    COPY CODE
    
    add_action('kleo_after_breadcrumb', 'bp_add_profile_navigation');
    

    The last activity of the user can be found in the following file: “wp-content/themes/sweetdate/members/single/member-header.php” around line 36

    Starting from here you will have to add some checks and show them only if a certain membership level is found.
    A few information about the membership levels checks can be found in the following page:
    http://www.paidmembershipspro.com/documentation/require-membership-function/

    If you can’t manage to do the modifications by yourself then I would recommend you to hire a developer.
    Cheers

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

    Hi,

    The last activity of the user can be found in the following file: “wp-content/themes/sweetdate/members/single/member-header.php” around line 36

    Ok thanks 🙂

    is this the right hook!?
    because nothing is removed by
    remove_action ('kleo_after_breadcrumb', 'bp_add_profile_navigation') ??

    @+

    #53321
     Andrei
    Moderator

    This will be the right way to remove it:

    COPY CODE
    
    function kleo_remove_actions(){
        remove_action ('kleo_after_breadcrumb', 'bp_add_profile_navigation');
    }
    add_action('after_setup_theme', 'kleo_remove_actions', 9999);
    

    Cheers

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

    Hello,

    It’s perfect 🙂
    Cheers

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?