Hi, i like to change in the header a word color in red, how can i do it?
Topic summary
A user wants to change the color of a specific word in their store’s header to red.
Solution provided:
- Navigate to Themes → Edit code → Assets → base.css
- Add CSS targeting the last menu item in the header’s inline menu
- Use
.header__inline-menu .list-menu--inline > li:last-childselector withcolor: redandbackground: orangeproperties
Follow-up issue:
The initial CSS solution doesn’t work on mobile view.
Mobile fix:
Additional CSS code provided targeting .menu-drawer__menu > li:last-child with similar color properties to address the mobile display issue.
The discussion includes code snippets that are central to implementing the solution for both desktop and mobile views.
1 Like
Hi @itaworld
You can try follow this path:
Themes => edit code => asset => base.css
and add this code to bottom of the file base.css
.header__inline-menu .list-menu--inline > li:last-child {
background: red;
}
.header__inline-menu .list-menu--inline > li:last-child .link--text{
color: orange;
}
1 Like
it doesn’t change on mobile version
To change for the mobile view
.menu-drawer__menu > li:last-child {
background: red;
}
.menu-drawer__menu > li:last-child .link--text{
color: orange;
}
