[Resolved] Slideout menu width

Home Forums Support [Resolved] Slideout menu width

Home Forums Support Slideout menu width

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1333901
    Emanuele

    Hi Tom and Team

    I would like to change the width of the Slideout Menu in the latest version.

    It could be 350px.

    Can you help?

    Thanks

    #1334217
    David
    Staff
    Customer Support

    Hi there,

    Leo provides some code here:

    https://generatepress.com/forums/topic/off-canvas-width/#post-920928

    you will need to update the 400px and -400px etc. to your new size

    #1387300
    Jessica

    Hi there,

    i tried the code above but for me it doesn´t work. What did i wrong?

    Thanks for help!

    #1387303
    Jessica
    #1387304
    Leo
    Staff
    Customer Support

    Can you link us to the page in question with the code added?

    #1387316
    Jessica
    #1387321
    Leo
    Staff
    Customer Support

    Can you give this a shot instead:

    body .offside--left.is-open, body .offside-js--is-left .offside-sliding-element {
        -webkit-transform: translate3d(400px,0,0);
        -moz-transform: translate3d(400px,0,0);
        -ms-transform: translate3d(400px,0,0);
        -o-transform: translate3d(400px,0,0);
        transform: translate3d(400px,0,0);
    }
    body .offside--right.is-open, body .offside-js--is-right .offside-sliding-element {
        -webkit-transform: translate3d(-400px,0,0);
        -moz-transform: translate3d(-400px,0,0);
        -ms-transform: translate3d(-400px,0,0);
        -o-transform: translate3d(-400px,0,0);
        transform: translate3d(-400px,0,0);
    }
    
    body .main-navigation.offside {
        width: 400px;
    }
    body .offside--left {
        left: -400px;
    }   
    body .offside--right {
        right: -400px;
    }
    body .offside-js--is-left.slide-opened .slideout-overlay button.slideout-exit {
        left: 395px;
    }
    #1387327
    Jessica

    Great!!! Thanks!!!

    #1387337
    Leo
    Staff
    Customer Support

    No problem 🙂

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