• Resolved the_webscaper

    (@the_webscaper)


    This plugin is great… but having one challenge. Couldn’t find this question asked previously…

    Setting this plugin up for a client with little technical ability. Cropping images is not something this client will do. So, I want to set my promotion slider such that the width is always 600px (which, fwiw, is the width of the div it’s contained in), but that the height is variable; whatever the height of the image is should show, whether it’s 100px or 500px or whatever.

    I can’t do width 600px, height 100% because that implies 100% of the div space, not 100% of the image size, correct?

    Seems like the answer to this should be so simple but I can’t figure out how to do this. Help appreciated much!

    http://wordpress.org/extend/plugins/promotion-slider/

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

    (@woodent)

    Yes. 100% height does imply that the div will be the height of the containing div. In order to set the height of the div the same as the image, you would need to know the image height and set it dynamically. WordPress puts the image height into the image element, so you would need to get this information and use it. Currently, there is no easy way to do this with the plugin in its current state.

    Cropping the images before uploading would be the easiest thing to do. Keep in mind that my plugin allows you to set the image size that should be used and WordPress allows you to define image sizes. Perhaps you could define an image size and then tell the slider to use that image size? This way the only thing the client could do to mess things up would be to upload an image that is way too small. Images of the correct size or larger would be automatically cropped to the correct size as needed.

    Thread Starter the_webscaper

    (@the_webscaper)

    Thanks, woodent. Interestingly, I did swap out the sizes – put width to 600px and height to 100% and while I didn’t expect it would work, so far with all of my test images it is working so far.

    I agree that cropping the images first will work, but again, my client is a senior citizens community, and the people who will be doing the updating are used to Word. They don’t have Photoshop or image editing software and I don’t want to overwhelm them with having to learn (or buy!) new software in addition to learning WordPress, etc (they’re converting a former paper newsletter to online).

    I can’t define the image size, because all they’re going to do is find cute pictures to throw up that say “happy Thanksgiving” and “merry Christmas” from stock sources, so again without teaching them how to crop, edit, etc., that won’t work.

    For now I’ll keep it as is and see how they make out, and adjust if need be down the road. Thanks again for the reply!

    If your client has Office 2010 and is used to MS Word, then cropping, resizing is really simple and they could pick it up quickly.

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

The topic ‘[Plugin: Promotion Slider] Is Variable Height possible?’ is closed to new replies.