• Resolved jokewouters

    (@jokewouters)


    Hi,

    First of all, thanks for this amazing plugin. Great work!

    I’m using the slider as a image + text slider. Unfortunately there’s no auto height set so when the sliders don’t have an equal amount of text it results in a lot of whitespace underneath.

    Is there an easy way of implementing auto height? Something like this: https://owlcarousel2.github.io/OwlCarousel2/demos/autoheight.html ?
    Unfortunately I don’t have a clue where i could place this coding in your plugin..

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author simonpedge

    (@simonpedge)

    Unfortunately, the Owl Carousel ‘Auto Height’ feature has not been implemented within the Slide Anything plugin. I have made a note of this, and will include this feature in a future release of Slide Anything.

    In the meantime you can change the following code to implement this feature:
    Within the “/wp-content/plugins/slide-amything/php/slide-anything-frontend.php” file, look for the following code at about line 240:
    $output .= ” autoPlay : “.esc_attr($slide_data[‘slide_duration’]).”,\n”;
    $output .= ” paginationSpeed : “.esc_attr($slide_data[‘slide_transition’]).”,\n”;
    $output .= ” slideSpeed : “.esc_attr($slide_data[‘slide_transition’]).”,\n”;
    $output .= ” rewindSpeed : 1000,\n”;

    Insert a line here:
    $output .= ” autoHeight : true,\n”;
    (after the “autoPlay” line)

    Plugin Author simonpedge

    (@simonpedge)

    Marking this thread as resolved

    nice! thanks for the code, I may use that on a project I want an auto height adjustment.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Auto height sliders’ is closed to new replies.