wordpress-bootstrap icon indicating copy to clipboard operation
wordpress-bootstrap copied to clipboard

Setting top nav background color doesn't work

Open wiredin opened this issue 13 years ago • 5 comments

When i set a color for top nav background in the wordpress admin console nothing happens. I think this is a CSS issue. WordPress 3.4.2

wiredin avatar Nov 11 '12 20:11 wiredin

Confirming this.

Fumler avatar Nov 12 '12 22:11 Fumler

Potentially related/the cause: Top nav menu items mapped to blog categories fail to get the active class.

Xorandnotor avatar Nov 14 '12 19:11 Xorandnotor

This may be the cause:

Choosing a Top nav background color in the admin interface attempts to override the .navbar-inner class with a background-color: property. But the theme's default property uses background-image: which cannot be overridden by background-color:

Having the new background color set as a background-image fixes the problem.

You could replace:

background-color: #2B3340;

with:

background-image: -webkit-linear-gradient(top, #2B3340, #2B3340);

wiredin avatar Nov 15 '12 02:11 wiredin

I'm also noticing that choosing a gradient instead of color in the admin console also does not function properly.. it does not seem to make any changes to CSS.

wiredin avatar Nov 15 '12 02:11 wiredin

Thanks for the code now the background and gradient is working properly

Prakashup avatar Dec 07 '12 07:12 Prakashup