Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide “Modify” Button


  • mbamutuelle
    Participant

    @mbamutuelle

    Hello,

    Can you help me for hiding the “Modify” button on a member page.
    I Don’t want that my members can change their profile by themself because all fields are automaticly feed by an LDAP authentication.
    Before updating my Woffice theme, i just have to comment some lines of this file :
    /home/wordpress/wp-content/themes/woffice/buddypress/members/single/profile.php

    // Edit
    //case ‘edit’ :
    // bp_get_template_part( ‘members/single/profile/edit’ );
    // break;

    But now i Don’t find where i can hide this button for my suscribers.

    Can you try to help me please ?
    Thx

Viewing 3 replies - 1 through 3 (of 3 total)

  • mbamutuelle
    Participant

    @mbamutuelle

    I forget to tell you my conf :

    Version 5.0.3 | Unyson 2.7.21 | Woffice 2.8.0.3
    Buddypress 4.1.0 | BuddyPress Xprofile Custom Field Types 1.0.6


    shanebp
    Moderator

    @shanebp

    If you are not seeing code now in your theme then you could create a copy of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\profile.php
    Place it in the same theme location you mentioned above and make your edits.

    If you are using the BP Nouveau template pack, then make a copy of this file:
    buddypress\bp-templates\bp-nouveau\buddypress\members\single\profile.php


    mbamutuelle
    Participant

    @mbamutuelle

    Hello,

    Thanks for your help, it works when i copy profile.php (after editing it) in /home/wordpress/wp-content/themes/woffice/buddypress/members/single/

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar