Flexslider change buttons
Asked Answered
S

2

11

is there anyway I can change the little navigate buttons into text buttons on flexslider? I can't find it anywhere on internet.

Simplex answered 8/4, 2013 at 11:27 Comment(0)
N
11

To use an image as the navigation button:

.flex-direction-nav a:before  { 
    content: " ";
    display: block;
    background: url('../path-to-image/flexslider-left.png') no-repeat;
    width: 40px;
    height: 40px;
}
.flex-direction-nav a.flex-next:before  { 
    content: " ";
    display: block;
    background: url('../path-to-image/flexslider-right.png') no-repeat;
    width: 40px;
    height: 40px;
}
Norman answered 7/1, 2015 at 6:41 Comment(0)
K
5

You can use the prevText and nextText properties, like this (I'm using arrows but you can change to whatever text you want):

$('.flexslider').flexslider({
    prevText: "←",
    nextText: "→"
});      

And then in flexslider.css remove the background-image and text-indent properties from .flex-direction-nav a.

Hope it helps.

Kinglet answered 9/4, 2013 at 18:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.