Hide button link from tool box in block editor

This CSS should do what you want:

div[aria-labelledby="components-menu-group-label-7"] button:nth-child(4), div[aria-labelledby="components-menu-group-label-7"] a:last-child {
    display: none;
}

The label-7 and nth-child counts might vary depending on what other plugins might add to the menu, so use your browser’s element inspector tool to verify. I find it helpful to temporarily replace display: none; with background-color: blue; so I can verify I’ve targeted the right elements.

Thank you @bcworkz! The CSS worked correctly.



Source link