Home Forums Themes LEVANTE owlCarousel and RTL

owlCarousel and RTL

  • Author
  • #13001


    The wordpress site I’m working on is RTL, but the components that uses owlCarousel doesn’t seem to respect that…

    Am I missing something? Is there a way to enable setting rtl: true to the owlCarousel configuration in theme.js without overriding the file with a child theme?

    If I may suggest, a possible solution to this can be to detect if the parent element style has “direction: rtl” and if so setting rtl: true inside the owlCarousel configuration object.
    Another solution can be changing the configuration to extend a default configuration object, and then maybe the child theme can just override the default configuration.

    My current need is for the product slider, but this should apply to any owlCarousel / slider configuration if possible.

You must be logged in to reply to this topic. Click here to login or register