Closed bjtalbot1 closed 7 years ago
You have to use the unicode instead of HTML. For fa-chevron-circle-left it's "f137". You have to add "&#x" before the unicode and ";" after to make it work:
prevText: "", // String: Text for the "previous" button
Thank you, but when I use that exact code, I just get a box (unfilled) as output.
Sorry, I forgot to mention that you also have to assign the FontAwesome font to the div or span.
Example:
.prev {
font-family: "FontAwesome";
}
Ah, yes, that was it! Thank you so much!!
When I use Font Awesome icons for the prevText and nextText options, like this:
... the HTML doesn't come out right—the prevText icon gets duplicated somehow, coming out like this:
Any suggestions on how to fix this? I'm kind of a JavaScript beginner. Thanks for any help!