-
AuthorPosts
-
April 24, 2023 at 10:34 pm #1405449
Hello,
My client wants a multicolored gradient nav bar, but a white background on the logo area above the nav bar.
Here is a mock-up example – http://emilyl48.sg-host.com/wp-content/uploads/2023/04/Screen-Shot-2023-04-24-at-4.31.29-PM.png
How can I do this?
Thanks!
April 25, 2023 at 8:51 am #1405485Yes of course; however, you may need to create the gradient via css.
Header layout would be logo center – menu below
as you can see here on a demo-page: https://kriesi.at/themes/enfold-medical/But for your logo I would suggest to divide it into a brand and sub-text – like it is here in the forum.
Then you have the possibility with smaller screen widths (mobile devices etc.) to react to the smaller space. E.g. by placing the slogans below the logo or hiding them like here in the forum.If you got this layout – the nav background is in a header_main_alternate container – so try:
#top #header_main_alternate { background: #ca5fb4; background: -webkit-linear-gradient(left, #fc6267 0%,#ca5fb4 50%,#995dfa 100%); background: linear-gradient(to right, #fc6267 0%,#ca5fb4 50%,#995dfa 100%); }
but then you need the font to be white ?
and with such a big first-level menu – i would break the hamburger at 990px@media only screen and (min-width: 990px) { #top #header .av-main-nav > li > a .avia-menu-text, #top #header .av-main-nav > li > a { color: #fff } #top #avia-menu { display:flex; flex-flow: row wrap; justify-content: space-between; } }
etc. but it would be better to see the page – to give exact advice
April 26, 2023 at 12:21 am #1405619Hi,
@edgeofcinema it looks like you were able to sort it out with @Guenni007’s advice, thanks Guenni007
Unless there is anything else we can assist with on this issue, shall we close this then?Best regards,
MikeApril 26, 2023 at 11:00 am #1405684by the way: i guess you have zipped your font-files on mac OSX System – because the hidden files are uploaded too.
…/uploads/avia_fonts/type_fonts/macosx/._codec-pro-bold.ttf etc.You can avoid this – there is for example in BetterZip an Option : zip for “PC”
2nd: your hamburger icon is white on white ground ! – maybe you change it to:
#top .header_color div .av-hamburger-inner, #top .header_color div .av-hamburger-inner::before, #top .header_color div .av-hamburger-inner::after { background-color: #1a63ae; }
April 27, 2023 at 5:19 pm #1405842Good Advice on the hamburger menu.
But now I am having issues with the Ajax search, any idea why it’s showing up the way it is?
- This reply was modified 1 year, 7 months ago by edgeofcinema.
April 27, 2023 at 11:29 pm #1405880have you installed an additional plugin? where does the class ci-search comes from?
that might be the reason.April 28, 2023 at 3:22 pm #1405933Yes, there was another plug-in installed to do a category-based search of services by a third party.
I’ll check with those developers and see if they can rectify it.
April 28, 2023 at 3:35 pm #1405935One more request from the client. They asked if I can make the main navigation buttons stretch across the full width of the screen. Im thinking they want to to be responsive and widen if the screen is wider.
How can I do this?
April 28, 2023 at 5:47 pm #1405952Hi,
Do you mean the main menu nav bar, with equal space between the menu items, if so try this:.responsive #header_main_alternate > .container { max-width: 100%; padding: 0; } .html_header_top.html_logo_center #top #header_main_alternate .main_menu ul:first-child { display: flex; justify-content: space-between; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeApril 28, 2023 at 7:41 pm #1405957Works perfect, thanks.
I changed the padding to give a bit of room on the left and right edges.
.responsive #header_main_alternate > .container {
max-width: 100%;
padding: 0px 40px 0px 40px;
}
.html_header_top.html_logo_center #top #header_main_alternate .main_menu ul:first-child {
display: flex;
justify-content: space-between;
}April 28, 2023 at 8:02 pm #1405958Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Need a gradient Nav Bar and A solid Logo Area’ is closed to new replies.