I included the slick image slider in one of my pages. It included forward/backward buttons either side of the image container. I found the buttons ugly and decided to go ahead without them but as I could not find a way of disabling them, made them white as the background.
Now, I found that the page has a lot of lateral movement in small devices and it appears that this may be due to those invisible (but active) buttons.
I suppose that somewhere in one of the scripts (slick-theme.css) something must be changed. Unfortunately javascript is a big mystery for me… I tried display:none in thee part of the css below but it did not get rid of the links.
So, I suppose one of the scripts needs fiddling with…
If you move the mouse around the left side of the images you will find the hidden backward arrow
I hope that you can help. Thank you
/* Arrows */
.slick-prev,
.slick-next
{
font-size: 0;
line-height: 0;
position: absolute;
top: 50%;
display: block;
width: 20px;
height: 20px;
margin-top: -10px;
padding: 0;
cursor: pointer;
color: transparent;
border: none;
outline: none;
background: transparent;
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus
{
color: transparent;
outline: none;
background: transparent;
}
.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before
{
opacity: 1;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before
{
opacity: .25;
}
.slick-prev:before,
.slick-next:before
{
font-family: ‘slick’;
font-size: 20px;
line-height: 1;
opacity: .75;
color: transparent;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.slick-prev
{
left: -25px;
}
[dir=‘rtl’] .slick-prev
{
right: -25px;
left: auto;
}
.slick-prev:before
{
content: ‘’;
}
[dir=‘rtl’] .slick-prev:before
{
content: ‘’;
}
.slick-next
{
right: -25px;
}
[dir=‘rtl’] .slick-next
{
right: auto;
left: -25px;
}
.slick-next:before
{
content: ‘’;
}
[dir=‘rtl’] .slick-next:before
{
content: ‘’;
}