Contents
How to hide page title and command bar?
If you want to hide the page title and command bar for all the modern page, we can create an application customizer to inject the CSS style below to achieve it. Thanks for contributing an answer to SharePoint Stack Exchange! Please be sure to answer the question.
Hide any of the following elements on a specific modern or classic page using reusable SharePoint Framework webpart. FYI, Check out my new blog about all in one Brand My Page webpart which include the functionality of this webpart.
How to hide SharePoint Quicklaunch on a specific page?
FYI, You could use CSS instead of jQuery but as modern page has dynamic classes jQuery seems to better option to find element based on partial name. And also as SharePoint Modern theme is more of Single Page App, additional JavaScript code can make sure to unhide the quicklaunch when navigating to other pages without this webpart.
How to get the name of the command bar?
Below is a screenshot of command bar in a typical document library, more or less it is the same for list also. Use F12 developer console and inspect New button element, you would see something like below, We will see that name attribute is something which is unique and can be used to identify element and apply any JavaScript code.
But, my requirement is, to hide them and there are possibilities through CSS. But a permanent solution will be, creating the Page using the layout “Home” instead of “Article”. By default, we were not able to create a layout with a defined layout in modern page.
FYI, Check out my new blog about all in one Brand My Page webpart which include the functionality of this webpart. User webpart properties to select what you want to hide. Load more… We all used to add few quick css styles and hide or move elements in SharePoint pages. But now in modern pages we can’t add JavaScript/ CSS directly.
Is there a way to hide the toolbar in a list?
As far as I know there is no supported way to hide the toolbar in the out-of-the-box views for lists. However, if you’re using the List web part there is a property you can use to hide the command bar (toolbar). Recently MS introduced the “Hide Command bar switch” as a part of the list webpart properties.
How to allow users to create ” modern ” site pages?
Go to the Settings page, select Pages, and then clear Allow users to create new modern pages. For more info, see Allow users to create modern pages. You can prevent a web from using the “modern” page experience by disabling the web scoped feature with ID B6917CB1-93A0-4B97-A84D-7CF49975D4EC (name = “Site Pages”).
Why are modern lists not showing up on modern sites?
By default, they don’t show up on “modern” sites because it’s not possible to add user custom actions to “modern” sites because they have the NoScript option enabled. However, you can disable NoScript on “modern” sites to achieve the same behavior for “modern” lists and libraries across “classic” and “modern” sites.
Do you put document library on modern page?
In the old days, almost every Microsoft Site Template contained a document library embedded on the page. That’s because it was the most exciting thing back then. Not anymore. Unless your site does not contain any other web parts, do not embed a document library on the modern page.