Hiding Sharepoint Views Button from User [SOLVED]

Hi,

I'm wondering if it is possible to hide the drop down users can use to change public sharepoint views.
I am currently using css and the list view in plumsail editor to hide other buttons and was wondering if the same could be done for this.

Example of what I would like to hide. (This whole option if possible.)
image

Example of me using List View to hide other buttons

1 Like

Apologies for answering my own question.
But I managed to come right by adding the following code into the list view.

.ms-CommandBarItem-link[name="My Courses"] {
    display: none;
}

Where "My Courses" is the name of the view.

Hello, I hope you're doing well. I want to ask you where you added the CSS. Did you create a separate file and make the call from the page where the view of the records in the SharePoint list is, or is the CSS code embedded in the same page?