How to hide switch view option in sharepoint online

Copper Contributor

Hi,

 

IS there any way to hide the switch view option in a list in SharePoint online ? Can we do through a custom CSS ?

 

 

 

 

1 Reply

@Sachk1 This is not possible using SharePoint out of the box capabilities.

 

But, you can inject custom CSS using SPFx application customizer to hide this. Check: How can I include the same JS and CSS files on multiple SharePoint Modern Page? 

 

You can use CSS something like this: 

 

button[title='Switch view options'] {
    display: none !important;
}

 

Note: DOM manipulation & CSS customizations are not recommended by Microsoft and some of your customization may break if Microsoft changes HTML element id/classes in new release updates.


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.