Okay
  Public Ticket #4037400
I need help adjusting the settings to the location of the arrows in a gallery
Open

Comments

  •  2
    Evan started the conversation

    I've created a gallery style for images in a portfolio that I'm making. The issue is that I don't like where the arrows are positioned.

    I know that they are positioning within the frame of the widest image of the gallery (right?), but I want them to be continually positioned 60px from the edges of the browser window, centered vertically.

    Could you help me figure out how to fix them so they continually stay positioned at that location, vertically centered?

  •  3,208
    Andrew replied

    Hi Evan,

    Thank you for getting in touch.

    From my end, I can see that the buttons are vertically centered in the gallery. Here's a screenshot showing the same. Also note in the screenshot, the CSS for the next/previous buttons has been set to 50% from the top of the image gallery.4461083712.png

    6575159661.png

    I hope that clarifies your query.

    Cheers,

     

    I hope that clarifies your query.

    Cheers,

     

  •  2
    Evan replied

    Hi Andrew,

    Thanks for getting back to me.

    referring back to my main inquiry, I want the buttons to remain 60px from the left and right edges of the browser window.

    Please advise,

    Thanks

  •  3,208
    Andrew replied

    Hi Evan,

    Thank you for getting back to us and for the clarification.

    To move the arrows 60px from the edges, add this into the Custom CSS box in your Salient Theme Options panel:

    .nectar-flickity[data-controls*=arrows_overlaid] .flickity-prev-next-button.previous {
      left: 60px !important;
    }
    
    .nectar-flickity[data-controls*=arrows_overlaid] .flickity-prev-next-button.next {
      right: 60px !important;
    }

    Try that and let us know how it goes.

    Thanks,

  •  2
    Evan replied

    Hi Andrew,

    I added this line into the Custom CSS box and nothing changed. Any ideas how I can get these arrows to rest exactly 60px from the edges of my browser window?

    Thanks,

    Evan

  •  9,282
    Tahir replied

    Hey Again,

    Thanks for reaching out! . Had to work some CSS magic on this :) .

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    .nectar-flickity[data-controls*=arrows_overlaid] .flickity-prev-next-button.next {
        right: 50% !important;
        transform: translateX(48vw);
    }
    
    .nectar-flickity[data-controls*=arrows_overlaid] .flickity-prev-next-button.previous {
        left: 50% !important;
        transform: translateX(-48vw);
    }
    

    Thanks

    Best,

     


    ThemeNectar Support Team 

  •  2
    Evan replied

    Boom! That did the trick. As always, thank you, Tahir!

    -Evan