[Resolved] I need help with customizing my menu mobile siderbar

Home Forums Support [Resolved] I need help with customizing my menu mobile siderbar

Home Forums Support I need help with customizing my menu mobile siderbar

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1132295
    eden

    ok I have managed to make the menu slide from the right but i need help with some fixes https://imgur.com/a/mQcIHm7

    First I have hebrew language so i need to align the words to the right,
    Second I would like to make the opened menu to be smaller (so it will not cover the most of the screen when it open),
    And last I would like to add a divider between each link in the menu.

    Can you help me with it ?

    #1132377
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this CSS:

    .slideout-navigation button.slideout-exit,
    #generate-slideout-menu .slideout-menu li {
        text-align: right;
    }
    
    .slideout-navigation .slideout-menu li:not(:last-child) {
        border-bottom: 1px solid #ca6127;
    }

    As for the width, this reply should help: https://generatepress.com/forums/topic/width-slideout-menu/#post-586968

    Just try replacing the value there with something like 200px.

    #1132540
    eden

    Your code worked perfectly but i am sorry i couldnt make it work with the link you gave me,
    Tried my best but no change with the menu width.

    Can you write me here a code ?

    #1132714
    David
    Staff
    Customer Support

    Try This CSS:

    @media (max-width: 768px) {
        .main-navigation.offside {
        	width: 200px;
        	right: -200px;
        }
        .offside--right.is-open, .offside-js--is-right .offside-sliding-element {
            -webkit-transform: translate3d(-200px,0,0);
            -moz-transform: translate3d(-200px,0,0);
            -ms-transform: translate3d(-200px,0,0);
            -o-transform: translate3d(-200px,0,0);
            transform: translate3d(-200px,0,0);
        }
        .offside-js--is-right.slide-opened .slideout-overlay button.slideout-exit {
            right: 200px;
        }
    }
    #1132716
    eden

    No it did not work,
    It only affected the desktop version which i dont want to change.

    I only want the menu sidebar to be used and changed in mobile – the code did not affect it.

    #1132764
    David
    Staff
    Customer Support

    I edited the code to apply only to mobile

    #1132774
    eden

    Ok It is now affecting only the mobile,
    But is not good because it breaks the design and it is not affecting the opened menu
    you can see it here https://imgur.com/a/y2KsKDQ

    #1132782
    David
    Staff
    Customer Support

    Made one last edit above

    #1132787
    eden

    Perfect ! Thank you !

    #1132804
    David
    Staff
    Customer Support

    You’re welcome

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