Hi @Cenk ,
since this is scaffolded login.cshtml, I can not add the layout the way you suggested.
By default, the Scaffolded Login page will using the /Pages/Shared/_Layout.cshtml
layout, you can check it in the _ViewStart.cshtml page:
So, go to the /Pages/Shared/
folder and create a _IdentityEmptyLayout.cshtml
layout, then, copy the _Layout.cshtml content to the _IdentityEmptyLayout.cshtml
layout, after that, remove the header and footer elements:
Then, in the Scaffolded Login page, use the following code to set the layout:
@{
Layout = "/Pages/Shared/_IdentityEmptyLayout.cshtml";
}
After that, when login, the result like this:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion