x

sometimes the last item in my dropdown menu does not work

Hi - this seems to be some kind of sporadic issue where the right-most item in our dropdown menu is inactive on first load.  all of the other menu items load and work consistently - seems like some bug with liquid design or loading of js or something.  if i resize the page, the menu sometimes starts working - or if i refresh the page a few times - but this would not be an expected behavior of users.  Has anyone else experienced this problem and know if a solution?

See: https://familyresources.bellxcel.org/   -- usually seem to happen when the ADDITIONAL RESOURCES item shows up on top nav (vs under MORE...).

Thanks!

667 Views
Message 1 of 3
Report
2 REPLIES 2

@chris_m I can't speak to the sporadic last menu presentation issue, however, you should, whenever possible, avoid the "More.." setting that collects menu items that may overflow the header bar. This is a kludge setting added by Weebly to prevent unsightly wrapping of jam-packed navigation menu items when the desktop screen size is small, e.g., 13.3" laptop screens. You will, however, never see a "More" menu item on a professionally-built website regardless of size and complexity.

In your case, there are two reasons why More is appearing:

  1. It's turned on in your site settings (click the "Settings" menu item in the Site Navigator and scroll down to the "Navigation" section in the General page and uncheck that "More" checkbox to turn it off and save your settings); and
  2. The Weebly theme code forces the navigation menu to fit in only 50% of the header bar width which forces text wrapping to occur far too early. This width attribute doesn't make any sense and is a flaw in the theme code. Here's how you fix it: In the Site Editor, click the "Theme" menu item then click the "Edit HTML/CSS" button at the bottom of the left-hand sidebar. You'll arrive at the css code window. Click the magnifying glass icon at the top of the window and search for the term, ".desktop-nav". You'll jump to the code block you see below. Change the width attribute from "50%" to "100%" (highlighted in red below).
.desktop-nav {
    width: 50%;
    text-align: center;
}

If you make these two modifications, your last menu item, "Additional Resources" will appear as it should in your desktop navigation menu regardless of desktop screen size. If you shrink the width of your browser window to emulate smaller viewports, you'll see that the navigation menu will change to the mobile hamburger menu well before any desktop menu item wrapping occurs (because you changed the width of the desktop navigation).

647 Views
Message 4 of 3
Report

Hi Paul - Thank you so much for your detailed response!  I have (finally!) made these changes - although, tbh i'm not exactly sure if the edited CSS is implemented completely (interface a little confusing) - the code was in _nav.less - which i edited and it then aked to save a name for the theme - which i did, then published the site.  Not sure where that theme name comes into play and how to confirm it is using it.  Thanks for your advice!

625 Views
Message 4 of 3
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.