D
D
DeniSidorenko2017-10-11 15:34:18
JavaScript
DeniSidorenko, 2017-10-11 15:34:18

How to replace prev/next from owl carousel with arrows from font-awesome?

Actually a question. If you turn on navigation there are prev / next buttons. How to replace with icons from fontawesome?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Dzyuba, 2017-10-11
@DeniSidorenko

$(function() {
   $('.owl-carousel').owlCarousel({
       margin: 50,
       responsiveClass: true,
       items: 2,
       nav: true,
       navText: ["<img src='img/prev.png'>", "<img src='img/next.png'>"],
       responsive: {
           0: {
               items: 1,
               margin: 150,
               center: true,
               autoWidth: true,
               nav: false,
               navText: []
           },
           992: {
               items: 2
           }
       }
   });

Just change the values ​​in navText to your own)

D
denis71i, 2019-01-18
@denis71i

Is it possible to put font icons, and not pictures?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question