• Resolved rebeccatcook

    (@rebeccatcook)


    Hey all!

    First off, great plugin! Thanks so much! This is definitely the best lazy way I could find for my clients to have CMS control over image sliders. My only issue is that if I’m using photos that are landscape AND portrait, the images don’t resize to the carousel in a consistent manner. I wanted to correct this by hopefully posting the images that I enter into the plugin as background images for the item divs that they generate. Is there a short way to do this or am I going to have to alter the plugin files?

    Any help would be appreciated! Thanks again!

    https://wordpress.org/plugins/cpt-bootstrap-carousel/

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

    (@tallphil)

    Hi there,

    This is a tricky one – I thought about getting WordPress to use its thumbnail resizing to sort this out, but I wanted to keep the plugin agnostic to image sizes so in the end I decided to keep it simple and leave it up to people to resize the images themselves.

    Depending on how you want portrait photos to display, I guess you could do this with CSS by fixing the height of .carousel-inner ? I just had a go and it looks like it already has its overflow set to hidden, so changing this height should essentially crop the photos within. I haven’t tried this with portrait photos though. I’d probably try this with CSS first, and then we can talk about writing in server side support for such a feature if that doesn’t work.

    Thanks for your comments anyway, I’m glad you find the plugin useful 🙂 A cheeky review would be much appreciated. Let me know how you get on with your problem..

    Phil

    Plugin Author Phil Ewels

    (@tallphil)

    I’ve had a similar issue raised on github, where the poster pointed out that my solution above will then cause problems on wide screens. The background-image solution fixes it for both.

    I’ll add it as a feature request for a future release and mark this pos as resolved for now.

    See https://github.com/ewels/cpt-bootstrap-carousel/issues/31 for further discussion.

    Phil

    Plugin Author Phil Ewels

    (@tallphil)

    Hi rebeccatcook,

    I’ve just added this feature and pushed a release. It should come through shortly – let me know how you get on!

    Cheers,

    Phil

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set image as background’ is closed to new replies.