Title: variable width?
Last modified: March 28, 2021

---

# variable width?

 *  Resolved [halukkuruoglu](https://wordpress.org/support/users/halukkuruoglu/)
 * (@halukkuruoglu)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/variable-width-2/)
 * Hello,
    Thank you for this great plugin, there is all I need except this: I cannot
   leave empty or set auto image width. I need that images on the carousel have 
   the same height but variable width. Now it is the opposite. I saw that owl carousels
   have this option. How will I do that? Thank you for your help.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvariable-width-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [thehowarde](https://wordpress.org/support/users/thehowarde/)
 * (@thehowarde)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/variable-width-2/#post-14245863)
 * This is not yet available, I can add this in a future release. In the meantime,
   there is a way to filter the script used on a carousel, and include this option.
 * You can use the filter `dd_filter_owl_carousel_script`
 * First, you should inspect your page, and find the script… you can search for “.
   owlCarousel” on the page, where you’ll see the entire jQuery script. Copy that…
   then update the code snippet linked below… Paste your script instead, and just
   add the property
 * `'autoHeight':true`
 * [https://gist.github.com/DuckDivers/05d65a0fe8518204cdae1ffc395cbead](https://gist.github.com/DuckDivers/05d65a0fe8518204cdae1ffc395cbead)
 * This is a valid workaround until I can update the plugin to add this option. 
   I’ll need to work it into my schedule.
    -  This reply was modified 5 years, 2 months ago by [thehowarde](https://wordpress.org/support/users/thehowarde/).
    -  This reply was modified 5 years, 2 months ago by [thehowarde](https://wordpress.org/support/users/thehowarde/).
 *  Thread Starter [halukkuruoglu](https://wordpress.org/support/users/halukkuruoglu/)
 * (@halukkuruoglu)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/variable-width-2/#post-14246014)
 * Thank you [@thehowarde](https://wordpress.org/support/users/thehowarde/) for 
   your quick reply,
    I made it like you said with no luck, then I realized that
   what I want is not autoHeight but autoWidth; so I changed it to true and it worked!
   So thank you very much, may be I wasn’t clear enough what I needed but you show
   me the way. Please do add autoWidth property modifiable when you implement this
   update.

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

The topic ‘variable width?’ is closed to new replies.

 * ![](https://ps.w.org/dd-post-carousel/assets/icon-128x128.png?rev=1929447)
 * [Custom Post Carousels with Owl](https://wordpress.org/plugins/dd-post-carousel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dd-post-carousel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dd-post-carousel/)
 * [Active Topics](https://wordpress.org/support/plugin/dd-post-carousel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dd-post-carousel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dd-post-carousel/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [halukkuruoglu](https://wordpress.org/support/users/halukkuruoglu/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/variable-width-2/#post-14246014)
 * Status: resolved