Jump to content

Swiper Button Customization

Go to solution Solved by tuanphan,

Recommended Posts

Hi! I'm trying to minimize the width between the two arrows on my home page slider. I got the code from Will Myers' tutorial which was super helpful!

Basically I'm looking on how to better customize the navigation/buttons for the sliders. In the embedded code, I've customized the HTML to this: 

 

<div data-wm-plugin="section-slider" 
  data-slides-count="3" 
  data-arrows="bottom" 
  data-speed="1000"  
  data-color=black>
</div>

 

And then, I've targeted the arrows to at least make them smaller and remove the shadow in Custom CSS:

[data-section-slider] .swiper-button-next::after, [data-section-slider] .swiper-button-prev::after {
  text-shadow: none;
  font-size: .8em;
}

But beyond that, I'm really just looking to bring the arrows closer together in the middle. Any help would be appreciated!

Website: https://rabbit-rhubarb-64x2.squarespace.com/

Password: lauren

Attaching the desired look!

image.thumb.png.8db41e7972e8b00c36a32cc96fded9c3.png

** Would also be interested in finding out how to change the arrow symbol as well? Just out of curiosity for future projects. Right now, the arrows appear to be a font. Attaching an arrow example below. 

image.png.f42810143872a4abbd5569cd95993fa7.png

 

 

Link to comment
  • Replies 5
  • Views 5.4k
  • Created
  • Last Reply

Top Posters In This Topic

On 3/28/2023 at 3:19 AM, mgcreative said:

@tuanphan It should be the home page! I may have been playing with it. I also added a similar styled one on the About page.

Hi,

I see you changed arrow position to left/right sides. Do you still need help?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.