Skip to main content
Question

CSS/HTML working in Sandbox but not Production

  • July 15, 2025
  • 3 replies
  • 47 views

Hi There, 

We have a request to remove the ‘Remove from my Team’ button on the My Team page - 

The CSS code work is Sandbox - but not production. 

I have used the code in the Sample 7.0 interface box - remove all other codes - moved it to the top, and nothing. 

Here is the code: 

/** This option hides the "remove from team" option from Direct Manager view **/

.team-member-card__actions div.ui-button-dropdown-menu.ui-shadow-md ui-button-dropdown-option:nth-child(4){
display: none;
}

/* This option hides the "remove from team" option in My Team on team member sub-pages */
doc-layout:has(a[target="_blank" target="_blank" target="_blank" target="_blank" target="_blank" href="/manage/my-team;isTeamMemberPage=true"]) mng-team-member-card ui-button-dropdown-option:nth-child(2)
{
display: none;
}

3 replies

lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • July 15, 2025

Try this code

/** Hide the Remove from Team option from cards **/
.team-member-card__actions div.ui-button-dropdown-menu.ui-shadow-md ui-button-dropdown-option:nth-child(4){
display: none;
}

/** Hide the Remove from Team option from pop up menu **/
a.action-can_remove_relation {
display: none !important;
}

 


  • Author
  • Novice I
  • July 16, 2025

Thank you for the response. 

But alas, the option remains there 😣


lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • July 16, 2025

That’s odd. I just checked again and that option is removed. Perhaps you have some conflicting CSS code somewhere? If you are an Extended enterprise customer, make sure you set this code at the root if you want to remove across your LMS.