Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1130349
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionI want to change color to red for one menu page "Logowanie".
Anyone help how I can do it ?
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionI want to change color to red for one menu page "Logowanie".
Anyone help how I can do it ?
Share Improve this question edited Dec 13, 2018 at 16:08 fuxia♦ 107k39 gold badges255 silver badges461 bronze badges asked Dec 13, 2018 at 16:02 SylvesterSylvester 1115 bronze badges2 Answers
Reset to default 1You have to right click to the element you want to change color, then you will Inspect Element to know its ID, once you know the ID you have to add custom CSS changing the color of that item like this:
#menu-item-391 a {
color: red;
}
You can use hex code for the color if you don't want pure red.
The answer provided by @Castiblanco will work, but using ID's for styling is a terrible idea. Add a class to your menu item and then adjust the color through your class.
.nav-link__red-class {
color: red;
}
Closed. This question is off-topic. It is not currently accepting answers.
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionI want to change color to red for one menu page "Logowanie".
Anyone help how I can do it ?
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionI want to change color to red for one menu page "Logowanie".
Anyone help how I can do it ?
Share Improve this question edited Dec 13, 2018 at 16:08 fuxia♦ 107k39 gold badges255 silver badges461 bronze badges asked Dec 13, 2018 at 16:02 SylvesterSylvester 1115 bronze badges2 Answers
Reset to default 1You have to right click to the element you want to change color, then you will Inspect Element to know its ID, once you know the ID you have to add custom CSS changing the color of that item like this:
#menu-item-391 a {
color: red;
}
You can use hex code for the color if you don't want pure red.
The answer provided by @Castiblanco will work, but using ID's for styling is a terrible idea. Add a class to your menu item and then adjust the color through your class.
.nav-link__red-class {
color: red;
}
本文标签: cssHow to change the color of a menu item
版权声明:本文标题:css - How to change the color of a menu item 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749100714a2315948.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论