Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1291278
    Steve123
    Participant

    Hi,
    How do I reduce the horizontal length given to each entry in the first level (only that level) of a drop-down menu, please? See screenshot – it’s way too wide.

    Thanks,
    Steve

    #1291339
    Christian
    Moderator

    Hey Steve,

    To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Thanks.

    #1291400
    Steve123
    Participant

    Sorry, but why do you need my url?

    This is a brand new site, just being built, hardly any pages or plugins, and I’ve provided a screenshot to show the dropdown – there is nothing more to see because that’s all there is of the menu so far. Surely there is a couple of lines of code I can paste into the Customizer.

    I really do not understand why almost every time I ask for some simple code – never anything complicated – I don’t get anything but a request for my url. On occasions when the url hasn’t been available because I’ve been creating the site off-line, then your Support has found the code I need without seeing my site. So why ask instead to start with of just giving the code?

    How is anyone ever supposed to build with X using Xampp etc, when you constantly demand urls? If you want X to have a reputation as a pro level theme, you cannot demand urls unless the customization requested is something extraordinary.

    #1291452
    Thai
    Moderator

    Hi There,

    To fix this issue, please add the following CSS:

    .desktop .sub-menu {
    min-width: auto;
    }

    Hope it helps 🙂

    #1293087
    Steve123
    Participant

    Hello Thai,

    Thank you for providing some code. That works great, thanks.

    This question is related to that one – My navbar menu have a dropdown with one extra level going off from that. Do you have code to specify the width of the sub-menu width for each level, please? If not, how can I set a min width for all sub-menu elements, please?

    Thanks again,
    Steve

    #1293216
    Joao
    Moderator

    Hi Steve,

    Since I dont have your website to look at I imagine your navbar link is dropping to a second line after you add a certain number of items. You can fix that by going to Appereance > Customizer > Header and adjust your navbar fontsize, link spacing and letterspacing.

    Otherwise we can provide you a Media query, but would be much better to avoid that we have to exchange to many messages, that you can provide your URL in a private reply in order that we can better understand you and provide you a custom solution.

    Thanks

    Joao

    #1295492
    Steve123
    Participant

    Hi,
    My site is in development, so it’s not available yet.
    My navbar menu has 4 entries and each drops down to reveal a sub-menu / second tier / second level – whatever you like to call it. On hover, each of those second tier entries expands to show more entries on a third tier, which are clickable. All I want to know is:
    how to set the width for entries on the second level
    how to set the width for entries the third tier (which might be different to the second level width), please.

    Thanks,
    Steve

    #1295577
    Joao
    Moderator

    Hi Steve,

    Please add the following code to Appereance | Customizer | Custom | CSS and adjust according to your needs.

    .desktop .sub-menu a {
        padding-left: 90px;
        padding-right: 90px;
        font-size: 20px;
    }

    Hope it helps

    Joao

    #1296593
    Steve123
    Participant

    Hi Joao,

    Thanks, but it isn’t the padding I want to change. I want to set the sub-menu width for each level/tier, e.g

    .desktop .sub-menu 1 {
    width: 150px;
    }

    .desktop .sub-menu 2 {
    width: 300px;
    }

    What is the code that will do this, please?

    Thanks,
    Steve

    #1296596
    Thai
    Moderator

    Hi Steve,

    Please try with this CSS:

    .desktop .x-nav > li ul.sub-menu {
        min-width: auto;
        width: 150px;
    }
    .desktop .x-nav > li ul.sub-menu li > ul.sub-menu {
        min-width: auto;
        width: 300px;
    }

    Hope it helps 🙂

    #1298593
    Steve123
    Participant

    Thank you, Thai. That is just what I wanted.

    #1298596
    Joao
    Moderator

    Glad to hear it,

    Joao

  • <script> jQuery(function($){ $("#no-reply-1291278 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>