• Resolved CassioBotelho

    (@cassiobotelho)


    Hi there,

    First of all I want to give a huge thanks to the developer of Owl-Carousel Pluging. It′s a great solution with lot’s of style.
    I’m having a little trouble in the “do_shortcode” code.
    I’ve add the string:

    <?php echo do_shortcode('[owl-carousel category="promo" singleItem="true" autoPlay="false" navigation="true" ]'); ?>

    It’s in my “index.php” file.
    It only loads images one on the top of the other, just like an normal <img src=””>.

    So I got back to this support forum and found some explanations in a thread from 1 year ago.
    The string looks pretty much like this.

    <?php echo do_shortcode('[owl-carousel category="promo" items="2" autoPlay="false" navigation="true" ]'); ?>

    But it isn’t workig as well.

    Am I missing somethig?
    Should I insert a <link href="plugin-style-path.css" rel="stylesheet">
    !?!??!

    You can check what is going on @ https://suprafm.com.br/wordpress/
    It’s just my first website at all!!! I’m using Foundation + SASS as my framework.

    https://www.ads-software.com/plugins/owl-carousel/

Viewing 1 replies (of 1 total)
  • Thread Starter CassioBotelho

    (@cassiobotelho)

    So I did it!
    I make it work!

    Just add:

    <head>
      <link href="/wp-content/plugins/owl-carousel/css/styles.css"  rel="stylesheet">
      <link href="/wp-content/plugins/owl-carousel/css/owl.transitions.css"  rel="stylesheet">
      <link href="/wp-content/plugins/owl-carousel/css/owl.theme.css"  rel="stylesheet">
      <link href="/wp-content/plugins/owl-carousel/css/owl.carousel.css"  rel="stylesheet">
    
    </head>

    and

    <script src="/wp-content/plugins/owl-carousel/js/script.js"></script>
      <script src="/wp-content/plugins/owl-carousel/js/owl.carousel.js"></script>
    </body>

    Cheers!
    Thanks again for this great script!

Viewing 1 replies (of 1 total)
  • The topic ‘How to insert Owl-Carousel properly in my .php files?’ is closed to new replies.