Hi,
Instead of having the background of the main menu just one single color, is there a way (CSS?) to make it gradient looking? Like the examples over here? http://goo.gl/8DhV3g
Should be possible using custom CSS I would say. But how?
Please advise.
Thank you!
This looks like it might be very handy:
http://www.colorzilla.com/gradient-editor/
The element to style is td-menu-wrap, I believe (which seems to be the one that gets the colour you set in the theme panel).
The link I shared generates all the hard part of the CSS based on the gradient you make there. Once you make the gradient you want:
1. Go to your Theme Panel -> Custom CSS
2. Enter .td-menu-wrap { on a new line
3. Copy and paste all the CSS code generated by that site
4. Enter } on one more new line
5. Delete your cache if you use one and refresh page.
If this doesn’t work, the implementation will be more difficult and you’d probably have to wait for tagDiv support after the weekend.
Good luck!
Hi,
Thanks TheMediumUTM!
@OuweAap
You can change the menu background color from theme panel > theme colors then use css to change the border for menu items as you like. Like TheMediumUTM suggested you can find a gradient you like then copy the css used to achieve it. This needs custom work, if you don’t have basic css/html basic knowledge and you don’t know how to do this we recommend you hire an freelancer from sites like: http://studio.envato.com/
Thanks
Hi Guys,
Thanks for the replies.
Ok, I got it to work using this custom css:
.td-menu-wrap {
background: #cfe7fa;
background: -moz-linear-gradient(top, #cfe7fa 0%, #6393c1 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cfe7fa), color-stop(100%,#6393c1));
background: -webkit-linear-gradient(top, #cfe7fa 0%,#6393c1 100%);
background: -o-linear-gradient(top, #cfe7fa 0%,#6393c1 100%);
background: -ms-linear-gradient(top, #cfe7fa 0%,#6393c1 100%);
background: linear-gradient(to bottom, #cfe7fa 0%,#6393c1 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=’#cfe7fa’, endColorstr=’#6393c1′,GradientType=0 ); }
Unfortunately, the gradient code ONLY works when I disable the Site Background completely.
And I AM using my own site background. So it seems like it’s one (gradient menu but no site background) or the other (no gradient menu but with site background).
TagDiv support: why is this, and what is the fix for this?
In short: I just want some more gradient color in my main menu. I figured out the code, but this code does NOT want to work when I use site background. How.To.Solve?
Thanks 🙂
Interesting problem! Glad you got it working as far as you did. I think Lucian will have to be the one who figures out why it doesn’t work with site background. :p
Hi,
You can try to target the menu much better, try to use .page class or !important.
The .td-boxed-layout class it’s used when the theme has a background so you can use that class to in order to target the menu when the theme has set a background which it’s your case.
Hope this helps!
Thanks!
