>> Check out our new theme: Benous - Elementor MultiPurpose WordPress Theme <<
If you can't submit the support ticket here, please use the contact form at THEMELOGI profile page on ThemeForest

Tickets › Tickets › Wanium › Menu width – smooth scroll menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4241

    Hello,

    I’m having a few trouble trying to make a menu responsive.
    As it has 8/9 elements, when using screen = or inferior to 1024px, last elements are only visible when scrolling with sticky menu, and they are displayed under other menu elements.
    How can i make the whole menu fit in 1 row ?

    I tried using :

    @media (max-width: 1280px)
    nav .col-lg-10 {
        width: 69%!important; 

    with width 100%, but it is not enough, seems i will have to change the left and right module width too, and maybe other class.
    Is there a class where i can apply parameters to make a large menu fit in 1 row when screen > to 1024px ?

    Another request, is for the sticky menu that is not showing at the start. Like there is a delay before it appears. Is it possible to change that ?

    Thank’s for your help !

    #4255
    Danny
    Supporter

    Hi there,

    Thanks for writing in!

    To resolve those issue, please add the code below to your Dashboard > Appearances > Customize > Fonts & CSS > Custom CSS:

    .nav-container{opacity: 1;}
    @media (max-width: 1120px) {nav .menu > li {margin-right: 15px;}}

    If the problem persists, please point to specific page where we can see the problem. Any screenshots would be welcomed!

    Best regards,
    Danny

    #4415

    Hello,

    This code helped me out, but i still had to add

    @media screen and (max-width: 1280px){
    nav .col-lg-10 {width: 100%!important;}
    nav .col-lg-1 { display: none!important;}}

    I’ve put the site online. Here is the adress : https://lenchantraine.fr
    With some more css i made something that doesn’t look so bad, i guess.. What do you think ?

    I still have a few troubles:

    1.About the scrolling menu. The menu anchored link go “too far”, over the displayed title. (screenshot)
    For a resolution of 1366 wide, if i click the menu element “Gite”, the sticky menu get over the text, if i click again on “Gîte”, it go to his right place.
    If i click from the bottom of the page on the sticky menu element “Gite” (or any other menu element), it go in it’s right place. But from the top, each menu elements go too far.
    Not easy to write down this problem. Could you test it ? And are you able to help me with it ?

    2. On responsive mode, is it possible to make the hamburger menu sticky ?

    Regards,

    #4424
    Danny
    Supporter

    Hi there,

    Thanks for your info!

    I think the menu is great now 🙂

    1. About the scrolling menu, please open up the scripts.js file in themes/wanium/assets/js folder, find the code below (around line 333) :

    jQuery('a[href^="#"]').smoothScroll({ speed: 800 });

    … and change it into this (you can feel free to modify the -50 offset so that the anchor menu doesn’t get over the title) :

    jQuery('a[href^="#"]').smoothScroll({ offset: -50, speed: 800 });

    2. About the sticky menu in mobile view, please use the custom CSS code here:

    @media (max-width: 990px) {
    	nav.absolute, nav.fixed{position:fixed!important;}
    	.site-scrolled nav{background:#fff!important;top:0!important;}
    	.site-scrolled nav .sub,.site-scrolled nav h1.logo,.site-scrolled nav .module.widget-wrap i{color:#252525!important;}
    	.site-scrolled nav .logo-light{display:none!important;}
    	.site-scrolled nav .logo-dark{display:inline-block!important;}
    }

    Hope this helps,
    Danny

    #4435

    Hello.

    Thank’s for the tips. The change of smoothscrool working nice.

    About the sticky menu on responsive. seems css not enough.. i may just skip this customization if the changes are too much.
    When you first load on desktop view, then toggle to responsive, it is working.
    Looking with inspect element:
    The line <nav class> changes as i scroll down. first add the “fixed” class, then “nav-hide”, then “nav-show”

    If i first load on mobile view, no class are added to <nav> when scrolling. Like a script first need to run on desktop to assign a class name to <nav>.
    First loaded on desktop view, then switched to responsive

    First loaded on mobile view

    Like i said, if this needs to much coding, and then become pain when uploading the theme, maybe better to skip this part..

    Thank’s anyway !

    #4443
    Danny
    Supporter

    Hi there,

    Thanks for your detailed info!

    It’s true that we’ll have to modify the theme scripts file to change the menu in mobile. We’ll try to add this as a feature in next update versions of the theme.

    Thanks for your understanding. Take care!
    Danny

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.