Tagged: Font-color, header, main-menu
-
AuthorPosts
-
February 12, 2016 at 7:18 am #582048
Hi there,
I’m thoroughly confused by where to set all the font colors for the main menu in the header area.
The main menu has a different background depending on where you are on the page. Therefore, I want to set:
– the active, hover and inactive options for the menu when the page is first loaded (light font on dark background) (e.g. font color active = yellow, hover = yellow, inactive = white)
– the default, hover and selected options for the menu when you scroll down the page (dark font on light background) (e.g. font color active = yellow, hover = yellow, inactive = black)
– … and the same again for the secondary menu once I’ve figured out how to do the main menu.I have tried making modifications in Theme Options > General Styling > Logo area, but it is not clear which refers to the Main Menu.
– if I change Logo Area font color, nothing changes.
– if I change Logo Area secondary font changes, it changes the color of the inactive menu items, but not in a satisfactory way because it changes all instances, on scroll and at top of the page, so one of the two is always hard to read.Are you able to make this clearer?
February 12, 2016 at 8:36 am #582087I agree, it is ridiculous that a theme that should be as refined as Enfold, does not have an easy way to change the active state color of a menu item or the hover color of the menu without having to use custom css!!!!!!
Please supply the custom css
February 15, 2016 at 7:58 am #583153Hi!
Thank you for using Enfold.
You can actually do that in the Enfold > Advanced Styling panel. Modify the Main Menu Links element or any other element that you need to modify. We didn’t include so many options because this kind of basic css modifications can be added in the Quick CSS field.
Cheers!
IsmaelFebruary 20, 2018 at 1:33 am #914609I could really use some help with this header / main menu font colors issue.
I’ve been working on it for the past 4 hours, trying different variations of custom CSS.
The demo we’re using defaults the top main menu/header to transparent, but we needed the site to have white background on the header/main menu, so we added this CSS (from a different kriesi.at/support thread) to fix that:
div#header_main {
background-color: white;
}Then this CSS, also from kriesi.at support, to resolve the phone number/socials above-main-menu header section to a white background.
#top .av_header_transparency #header_meta
{ border: none;
background-color: white; }But what happened was that the header colors (active page, hover, and normal menu-item link text) were now broken up into two different configurations: the first one for when browser is at the top of the page, but a different one when the site visitor scrolls down the page. Menu options within Enfold menu appeared to only impact the ‘scrolled’ options, so I kept searching and trying different CSS to resolve/get them to both behave the same way.
It seemed like I finally found a solution for the settings being split into two different ones by adding this
#header{
position: fixed !important;
}And it seemed like I’d found the solution for the proper hover and menu-link colors with this:
#header_main { color: #919191; } /* color of main menu items */
#header_main a:hover{ color: #e0b13a !important; } /* hover state of main menu items */but then when I tried the same thing for the ‘active page’ font text, it didn’t work, even with the !important in there:
#header_main a:active
( color: #000000 !important;
}So I went ahead and tried a different approach for the ‘active page’ color (so the site visitor knows what page they’re on) with this:
.header_color .main_menu ul:first-child > li.current-menu-item > a, .
header_color .main_menu ul:first-child > li.current_page_item > a
{ color: #000000 !important;
}It worked, yes, but now there’s a new problem, which is that when I click on a main menu link, the page begins to load up (goes to the lightbox screen), then comes back to the current page for a few moments, and only THEN renders the page for the link that was clicked on… So this ends up looking bad and producing a poor user experience.
Please help! I feel like there is surely an easy fix for this, but I have been unable to find it. Thanks so much!
UPDATE:
Unchecking the “Page Transitions” box in Enfold > Theme Options solved the reloading same page issue… Whew!
- This reply was modified 6 years, 9 months ago by willmfraz. Reason: Resolved issue
February 20, 2018 at 8:41 pm #914995Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Basilis -
AuthorPosts
- The topic ‘Font colors in top menu’ is closed to new replies.