Hello! I’m using Dawn 13.0.0, trying to add a button to the right side of the header. I’ve spent hours finding different versions of code from very helpful posts and YouTube videos that successfully do this, but none yet that also address the issue I’m having with how it appears on mobile.
I’ve added the following code to my base.css file to get the last menu item to appear as a button:
.header .header__inline-menu .list-menu > li:last-child > a{
background: #446FDA;
border-radius: 10px;
text-decoration: none !important;
padding-left: 20px;
padding-right: 20px;
color: #fff!important;
}
.header .header__inline-menu .list-menu > li:last-child > a span {
text-decoration: none;
color: #fff;
}
body .header__inline-menu .list-menu > li:last-child > a:hover {
background: #5E89F6;
}
.menu-drawer__navigation .menu-drawer__menu > li:last-child {
padding: 0rem;
}
.menu-drawer__navigation .menu-drawer__menu > li:last-child a{
background: #446FDA;
border-radius: 10px;
color: #fff!important;
justify-content: center;
}
This looks nice, and the button doesn’t appear on mobile unless you open the menu, which is fine. But I want the button to appear on the right side of the header on desktop (next to the search icon) rather than in line with the rest of the menu items.
I added the following code under the code shown above to accomplish this:
.header__inline-menu {
display: block;
}
@media screen and (min-width: 990px) {
body .header--middle-left {
grid-template-columns: auto 1fr;
}
body .header__inline-menu .list-menu--inline{
min-width: 100%;
}
body .header__inline-menu .list-menu--inline > li:last-child {
margin-left: auto;
}
}
@media screen and (max-width: 989px) {
body .header__inline-menu .list-menu--inline > li {
display: none;
}
body .header__inline-menu .list-menu--inline > li:last-child {
display: block;
}
body .header {
grid-template-areas: "left-icons heading navigation icons";
grid-template-columns: 1fr 2fr;
}
body #menu-drawer .menu-drawer__navigation .menu-drawer__menu > li:last-child {
display: none;
}
}
But after adding it the button also appears on mobile and partially overlaps my logo:
I’d like to have the button appear on the right of the header on desktop (see screenshot below), but appear only in the menu on mobile. Or appear in a more attractive way in the header on mobile so that it doesn’t overlap my logo.
My website is www.delicioats.com. It’s public, so no password needed.
Any help would be very much appreciated.




