• Resolved ahesterme

    (@ahesterme)


    Hi – thanks for this great and free plugin.

    I needed to format the excerpt so I put it in an extra wrapper div. The only way was to change class-owl-carousel-2-puplic.php in lines 303ff.

    What do you think about extending the hooks so that the complete output for a carousel can be changed in the hook?

    Cheers,
    Andreas

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author thehowarde

    (@thehowarde)

    @ahesterme You can already do that, by making no excerpt output, and then hooking in to dd-carousel-after-content with whatever you want.

    Thread Starter ahesterme

    (@ahesterme)

    Yeah – I see your point. But then I am loosing the ability to switch on/off the excerpt in the front-end.

    Plugin Author thehowarde

    (@thehowarde)

    I’ll take a look when I have some time. Give me a few days.

    Thread Starter ahesterme

    (@ahesterme)

    Top! And thanks!

    Thread Starter ahesterme

    (@ahesterme)

    You could simply setup a filter for $output…

    Plugin Author thehowarde

    (@thehowarde)

    Hello @ahesterme,

    Simply filtering the $output would probably cause most people to break the functionality of the plugin, since the owl-carousel script is included for each insertion (so you can do multiples on each page.

    I did however add two filters and pushed an update to the plugin. I’ve added some notes in the FAQ.

    <?php
    add_filter('dd_carousel_filter_excerpt', 'my_filter_carousel_excerpt', 10, 2);
    function my_filter_carousel_excerpt($excerpt, $carousel_id){
      $output = '<div class="wrapper">'; // Whatever Class you want
      $output .= $excerpt;
      $output .= '</div>';
      return $output;
    }
    ?>
    
    Thread Starter ahesterme

    (@ahesterme)

    Cool – worx for me!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Ability to rewrite carousel content’ is closed to new replies.