How hide Login button in header

AI-generated summary

To hide the login button in the header and display it in the hamburger menu, huynhthai824 can follow Lilly’s instructions. Add custom CSS code to the Mobile CSS tab in a theme component, and create a custom link for the top sidebar section. This will move the login button to the hamburger menu.

Additionally, to show the login sidebar link only to anonymous users, Lilly provided alternative CSS code. This code will hide the login button in the header and display it in the sidebar only for anonymous users.

How can we hide login button in header and display them in other, example Hamburger menu?

Assuming you are wanting this for mobile as your screenshot indicates, then add this code to a theme component Mobile CSS tab:

Then create a custom link for the top sidebar section:

There it is…

click it and there is the modal:

Also, to show the login sidebar link to only anonymous users, then you can use this code instead:

.sidebar-section-link-wrapper[data-list-item-name="login"] {
    display: none;
}
.anon .sidebar-section-link-wrapper[data-list-item-name="login"] {
    display: flex;
}

.d-header .login-button {
    display: none;
}

I think the data-list-item-name is case sensitive, so if your link is “Login” then it should be the same in the CSS code.