-
AuthorPosts
-
October 30, 2014 at 7:56 pm #343606
Hi!
1. I am finally going to have to use the drop down menu. But I’m having some issues, probably caused by custom css put for my header > I wanted the main menu items to be aligned with the bottom of the logo / Someone from support helped me css (see below) and it worked perfectly. But it seems the code has now some impact on the drop down menu ( see ‘Patients’ page). Too much space vertically… and not enough horizontally….
/* Menu and logo fixed and items line aligned with bottom of the logo */ #header_main .container, .main_menu ul:first-child > li a, .logo img, .logo a { height: 158px !important; line-height: 224px !important; } html.fixed_header #main { padding-top: 158px; } .logo, .logo a, .logo img { max-height: 158px!important; }
2. I’m also having problems with colors in this drop down menu. I’d like it to work like in the main one. All items in gray (not this pale green I don’t know where it comes from at all…) and hover/click green (hover/click green is already working). Which is good is that “PATIENTS” remains green once you’re on a sub-page. Here is the code in my css for the colors of main menu.
/* Menu with no underline style for hover or selected item */ .avia-menu-fx { display: none !important; } /* Menu font color for non selected items */ .header_color .main_menu ul:first-child > li > a { color: #919191; }
Thanks a lot for your help!
Regards,
MarieNovember 1, 2014 at 3:37 pm #344591Hey Marie!
1. If your wanting to move your menu down then go ahead and remove the custom CSS your using and add this instead,
.main_menu { top: 40px; }
That will move the menu down and leave your dropdown links alone.
2. If your just trying to change the default and hover colors of your menu items then no custom CSS is needed. Navigate to Dashboard -> Enfold -> Advanced Styling and select the main menu and sub menu links. You can change their default and hover colors here.
Best regards,
ElliottNovember 1, 2014 at 4:00 pm #344599Hi!
1. Thanks Elliott! But I’m not sure you understood my issue : I don’t want to move or change main menu at all. But the DROPDOWN menu is too “high” as you can see, and not large enough -> items titles are “cut” ! See 1st item -> “Quels types de” and than much below (under the 2nd item!!) -> “cancers” =>> What I’m saying is that it’s probably caused by the height-line of main menu having impact on the drop down menu… But the thing is that I don’t want to change the way items are in the main menu…. So how can I fix that ?
Let’s try to fix that first and we’ll see later for colors. I’m going to try to go back in Advance styling meanwhile.
Thanks!
Best regards,
MarieNovember 1, 2014 at 5:12 pm #344620This reply has been marked as private.November 2, 2014 at 12:35 am #344736Hey!
1. Yes that is because of the custom CSS your using. You can find it on line 76 in your child theme style.css file,
#header_main .container, .main_menu ul:first-child > li a, .logo img, .logo a { height: 140px !important; line-height: 196px !important; }
It would be best to remove that and use the CSS code I provided in my last post.
2. I’m not sure but I went ahead and changed them in Dashboard -> Enfold -> Advanced Styling to show you how easy it is. You can also change the hover colors there. Just select main menu or sub menu again and check the “Apply only to mouse hover state” checkbox.
Cheers!
ElliottNovember 2, 2014 at 10:36 am #344830Hey Elliott! Thanks!
1. OK got it ;) thank you! And now drop down menu displays correctly (regarding the line-height issue I had before). I have just added a ‘margin-top -31px’ to the drop down menu (to ‘balance’ with the ‘top 31px’ added for main menu following your advice).
BUT THEN OTHER ISSUE… sorry!! : this has an impact on sticky fullwidth submenu (see “nous connaitre” page) -> as invisible parts of main menu come over the fullwidth menu nav… it it very hard to correctly select items of sticky fullwdith menu… :(( How can this be fixed ?2. COLORS : Yes I know it is supposed to be easy ;) Thanks for your help & time. I had tried that… but see, I just went back in ‘Advance Styling’, re-change your colors to put mine. It’s doing great indeed for ‘font color’ (gray #919191 in main menu links and sub level links). But as soon as I want to ‘enter’ the hover color (checking the “Apply only to mouse hover state” checkbox) -> #00c472 -> here is what happens : I refresh -> go to the site -> hover is indeed #00c472, but my gray #919191 has been changed into a “pale green”!! This is what drove me totally crazy since the beginning! :) And this is why at the time I had finally given up with these Advance Styling options. At this stage I took of the “hover color” info (as it’s messing up everything) but I left the gray color for main menu links & sublevel links. I must be completely dum…, but would you mind going back into my admin and try yourself to enter #00c472 as “hover” color (for both main menu links & sublevel links) and then see what happens on my “gray” when going back to the site?
Thank you again & sorry for being “so long” in my explanations…
Cheers!
Marie- This reply was modified 10 years ago by Marie.
November 2, 2014 at 7:07 pm #344945Hi!
For the hovers you need to add another rule and check the “Apply only to mouse hover state” checkbox. I went ahead and added it for you.
Cheers!
ElliottNovember 2, 2014 at 7:25 pm #344954Hi!
Thank you Elliott! I feel so confuse I hadn’t get I had to “call” for “another window” again…
It’s working now, but I’d like the selected item to stay green… does this can be fixed in the Advanced styling also?And for drop down menu I’d like “no uppercase/letter-spacing” but I have this following code in my css. How can I keep it for main menu (and sticky full width menu) but change it for drop down menu?
/* Font style in Menu */ .avia-menu-text { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; font-weight: 400; }
Thanks a lot!
Cheers!Marie
November 3, 2014 at 10:44 pm #345583Hey!
You can target the current menu item with this,
.current-menu-item > a { }
And the sub menus with this,
.sub-menu a { }
Cheers!
ElliottNovember 4, 2014 at 10:33 am #345795Hey!
Sorry I’ve tried but without success. Can you be more specific please?
Thank you.
Cheers!
Marie/* General Font style in Menu */ .avia-menu-text { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; font-weight: 400; } /* Menu font color for current-menu-item #00c472 */ /* Font style for dropdown menu / text-transform none / letter-spacing none */
November 4, 2014 at 10:48 am #345800Complement : you forgot to tell me how to fix issue explained in my above message #344830 (november 2)
->>>>>>>
1. OK got it ;) thank you! And now drop down menu displays correctly (regarding the line-height issue I had before). I have just added a ‘margin-top -31px’ to the drop down menu (to ‘balance’ with the ‘top 31px’ added for main menu following your advice).
BUT THEN OTHER ISSUE… sorry!! : this has an impact on sticky fullwidth submenu (see “nous connaitre” page) -> as invisible parts of main menu come over the fullwidth menu nav… it it very hard to correctly select items of sticky fullwdith menu… and if you click quickly you’re send on other pages… To be able to correctly navigate in this fullwidth submenu the only way now is to click nearly UNDER menu items… :(( Please go and check by yourself. How can this be fixed ?Thanks!
Regards,
MarieNovember 4, 2014 at 1:52 pm #345842Update
Finally solved for main menu item color but then…
– the first item (link to anchor) of fullwidth also turning green (page nous connaitre) though the others do not…
Thanks to tell me how I can target colors for the fullwidth menu (current items).
– on another hand, on page “patients” (which is a link not a page) -> when you go to subpages -> “patients” is not green. I understand it’s not really the “current item” but is there a way to have it green still ?For drop down menu style adjustments, I still can’t make it…
Important : I need to know how to target specifically “main menu” / “drop down menu” / and “fullwidth sticky menu”
Thanks a lot.
Cheers!
Marie/* General Font style in Menu */ .avia-menu-text { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; font-weight: 400; } /* Menu font color for current-menu-item #00c472 */ .current-menu-item > a .avia-menu-text { color: #00c472 !important; } /* Font style for dropdown menu / text-transform none / letter-spacing none */ .sub-menu-item a .avia-menu-text { text-transform: none !important; letter-spacing: 0px !important; }
November 5, 2014 at 7:52 am #346379UPDATE / Sorry to post again… + I know that puts me down in the queue… but as I have resolved some issues since my last post I feel it’s nicer to tell you…
So EVERYTHING is ok now. I just need help on :
1. message #345800 (above) : Main menu AND submenu come over the fullwidth submenu ant then make navigation in the fullwidth menu quite hard… This is really important for me to solve. I hope you guys can help me with this.
2. still for fullwidth submenu : I’ve put code in my css to have a color on the “current item” (here dark gray #666666). Apparently it only works for the 1st one (“gouvernance”). These items are not real pages as you can see but anchor links. Should the code be different so that color of these anchor links turn to the good color when on the good section?
Thanks a lot.
Regards,
Marie/* Menu font color for current-STICKY-FULLWIDTH-menu-item #666666 */ #sub_menu1 .current-menu-item > a { color: #666666 !important; }
November 6, 2014 at 4:03 am #346948Hi!
Thank you for the update and for visiting the support forum. I’ve noticed that you’ve been posting a lot of theme customization queries for the past few weeks. We usually provide support for basic aesthetic modification and theme related issues. Everything beyond that should be consulted with a freelance developer. For further modifications, please visit Envato Studio or Werkpress. Please review any article about Firebug or Google Chrome Inspector. It should help you with css modifications and basic html structure modification.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.