Color items of top menu

Posted in: Newspaper
Post count: 58

Am I able to change the color of one specific item (not all) in the top menu? For instance have made it highlighted with red?

Post count: 23312

Hello mrx,

You can check the color for the top bar items from the panel, like this -> http://screencast.com/t/0qiUKb8Exr and the result -> http://screencast.com/t/sGkKVfYWy01

If is not what you mean, provide more details.

Thanks.

Post count: 58

Hello, Catalin,

thank you, but I mean highlighting just one item in the menu. Other words, for example, five menu items are made with black and only one with red. Perhaps we should think how to paint a header of the particular post to the desired color, for example red?

Post count: 6535

Hi

Yes you can but it’s necessary a bit of code to achieve the desired result. First you need to add a custom css class for that item: http://screencast.com/t/T9PZDqNb Then you can use some css to set a different layout only for that item, here is an example: http://screencast.com/t/lwgeicOVuh

.colored-item{
background-color: green;
}

Hope this helps!
Thanks!

Post count: 58

Hello,

yes, it works. Big thanks.

By the way please tell me how to change the color of text, but not its background? I’ve used color: green and nothing change.

Post count: 6535

HI

You need a different target to change the color, try this code: http://screencast.com/t/DDd1dZw7d

.colored-item a{
color: green!important;
}

Thanks!

Post count: 58

Oh, yes! Thank you very much.

Post count: 53

Hi! I wanted to do the same, but I believe the guidance is outdated now, since WordPress does not show CSS-classes option for menu items. Would you be able to update this thread?

Post count: 35449

Hi Piotrk87, this is a very old topic, and the suggestions from it are no longer apply now in WordPress or Newspaper theme.
Please create a new topic and let us know what do you want to achieve and we’ll help you to achieve that.
Thank you for your understanding!

Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.