Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1182105
    fmgrafikdesign
    Participant

    Hi there, I have a quick question. I adjusted the breakpoint of the mobile menu with media queries, but now the slide-transition from top to bottom is missing in the adjusted area, eg. it still works in the range up to the default 979px but not between 980px and 1199px. Could you tell me the CSS I need to fix this?

    Link to site: http://alwis.fmgrafikdesign.de/materialien/
    Attached is a video showing the issue.

    Best regards and thanks for your support,
    Fabian

    #1182106
    fmgrafikdesign
    Participant

    Attachment exceeded upload size, so here is an external link: https://dl.dropboxusercontent.com/u/11536087/transition.mp4

    #1182595
    Friech
    Moderator

    Hi There,

    Thanks for writing in! You can add this under Custom > CSS in the Customizer.

    .collapsing {transition: all 0.3s ease;}

    Cheers!

    #1184198
    fmgrafikdesign
    Participant

    Hi Friech,

    Thanks for your reply! I added the code to the global css, but it still doesn’t work. Can you give me further advice?

    Best,
    Fabian

    #1184339
    Christopher
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1185026
    fmgrafikdesign
    Participant
    This reply has been marked as private.
    #1185458
    Jade
    Moderator

    Hi Fabian,

    Please add this code in the custom JS:

    jQuery(document).ready(function($) {
       var menu_breakpoint = 1199;
       $('.s-mobile-collapse a').click(function(e){
          var current_width = $(window).width();
          if(current_width > menu_breakpoint) {
             return true;
          } else {
             e.preventDefault();
             $('ul.sub-menu', $(this).parent() ).each(function(){
                if( $(this).hasClass('mobile-collapsed') ) $(this).removeClass('mobile-collapsed');
                else $(this).addClass('mobile-collapsed');
             });
          }
       });
    
    });
    #1186180
    fmgrafikdesign
    Participant

    Hi Jade,

    Thanks for your reply! I added the code to the global JS in the Customizer, but nothing has changed. The script gets loaded, but it does not trigger on clicking the hamburger-button. Can you give me further advice?

    Best,
    Fabian

    #1186312
    Paul R
    Moderator

    Hi Fabian,

    To fix it, please remove the js code then add this in custom > css

    
    .x-nav-wrap.mobile {
        display:block;
    }
    
    .x-nav-wrap.mobile.collapse {
        display:none;
    }
    

    Hope that helps.

    #1186340
    fmgrafikdesign
    Participant

    Hi Paul,

    Thank you for your reply! This CSS did the trick. Thank you very much for your support!

    Best Regards,
    Fabian

    #1186507
    Joao
    Moderator

    Glad to hear it Fabian,

    Let us know if you need further help with anything else.

    Joao

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