Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #335250
    Glen Pavelich
    Participant

    I have had to do a media query to drop the Header wrapper / Site Title

    (For the selector – .content-align-right .custom-header-content-wrapper)

    to have a

    margin-top: 180px;

    because the last item in the drop down hides behind the header title text instead of showing over top.

    The Submenu css I think would be

    .absolute-header .main-navigation ul.sub-menu a

    I can only reproduce this on the brave browser or Safari so far, because responsive design mode in say Firefox doesn’t show me the error.  It occurs for some of my viewers at  <span id=”resolution”>1440 x 900 resolution.
    </span>

    My media query has fixed it for now, but if we continue to add submenu items then the last ones will be hiding again, and I can’t drop the header wrapper any more.

    Is there a fix to make the dropdown show overtop of the header wrapper?

    #335253
    Sakin
    Keymaster

    Hi Glen,

    Can you add the following CSS in “Appearance => Customize => Additional CSS” and check it?

    .absolute-header .site-header {
      z-index: 999;
    }

    Regards,
    Sakin

    #335327
    Glen Pavelich
    Participant

    Yes that works.  Thank you!!

    However even though the drop down is now in front of the header text, the hover links still hides behind the header text.

    Is there another code that could address that?

     

    G

    #335328
    Glen Pavelich
    Participant

    Ooops.  I had to remove the code.

    It made the button on the header not clickable.

    Is there another way to do this?

     

    G

    #335344
    Sakin
    Keymaster

    Hi Glen,

    Can you let me know in which page or URL that you are having issue?

    Regards,
    Sakin

    #335348
    Glen Pavelich
    Participant

    The url is

    thegloriousrevival.org

    The last menu item (Other) has 3 items in the drop down so you should be able to reproduce the error.  The Button on the header must not to be affected, however by the fix, as it was with the previous code.

    I do have extensive css for this site.  For some screen sizes I dropped the .section-title-wrapper to get it out of the way.

    The problem exist for many computer sizes using the brave browser (oddly, even though the same screen resolution displays fine in other browsers).

    But I am also able to duplicate it now in developer tools, responsive design mode in firefox

    for the size 1024×600 for example.

    And also for 1400 x 900,

    (I obviously didn’t change that one) so you will see you cannot get to the final 2 drop downs because the section-title-wrapper is in the way.  Took me a while to figure this out.

    Hope you can help, because my client is very likely to add more in the drop downs and then even my lowered .section-title-wrappers will not be effective for a bunch more laptop screen sizes.

     

    Thanks

     

    #335374
    Sakin
    Keymaster

    Hi Glen,

    I check your website https://thegloriousrevival.org/ there are a lot of custom CSS.

    If you are checking on the homepage that has an issue with the header media text. It has the same color as the menu color. So, you can add background color there. For that you can add the following CSS:

    @media only screen and (min-width: 64em) {
      .absolute-header .site-header {
        z-index: 999;
      }
      .absolute-header .main-navigation .sub-menu {
        background-color: #000;
      }
    }
    #335380
    Glen Pavelich
    Participant

    It’s not the color that is the issue.   I tried the code and it doesn’t make any difference.

    The menu actually hides behind the header wrapper so that when you scroll over it it is inaccessible.  It disappears from view completely.

    I know it’s the content wrapper because if I force it down and out of the way  ie….

    .content-align-right .custom-header-content-wrapper {
    padding: 0;
    margin-top: 100px;
    }

    this solves the problem (temporarily) …. but I can’t drop them down any further to accommodate more items to the drop down, so this is not be a fix at all in the long term.

    You can see on the image attached  (

    that it is behind, but what you can’t see is that when you scroll over it then it disappears and is not clickable because it’s all behind the header wrapper.  This is worse on the brave browser, but is also an issue with any media sizes for which I have not pushed down the wrapper, WHICH, as I said, is not an adequate fix.

    I cannot use the

    .absolute-header .site-header { z-index: 999; }

    because, although it works to solve this, it makes it so the button on the header is then not available to click, which is a very important element here.

     

    Not sure what 999 is.  Can it be shorter?  so that the menu appears properly in front, but the button is not affected?

    #335381
    Sakin
    Keymaster

    Hi Glen,

    Now, I got what you mean about the z-index having an issue with the button. Sorry for the issue. If you use the following CSS with z-index, then both the button and menu will work. Try this

    @media only screen and (min-width: 64em) {
      .navigation-horizontal.absolute-header .site-header-menu {
        height: auto;
      }
      .absolute-header .site-header {
        z-index: 999;
      }
    }

    Regards,
    Sakin

    #335407
    Glen Pavelich
    Participant

    Yes!!!  Thank you so much because I was really concerned I had hit a major road block.

    Amazing support which I have very much appreciated over the years.

     

    #335434
    Sakin
    Keymaster

    Hi Glen,

    Glad to hear that it worked for you. If you like the theme and our support then I have a quick request: could you please leave a review? https://wordpress.org/support/theme/darcie/reviews/#new-post. Your review will help others know what to expect when they’re looking for the support I offer. Even a sentence or two would be hugely appreciated.

    Regards,
    Sakin

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Horizontal Dropdown menu hides behind header’ is closed to new replies.