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

    (@tallphil)

    Hi HopRaiseE,

    The carousel will resize to fit whatever it is contained within. So, the best way to do this is to edit the surrounding page.

    You can either do this by editing your theme HTML / CSS, or by going to the “code” view of the page / post and adding the following:

    <div style="height:200px; width:100%;">
    [image-carousel]
    </div>

    (obviously changing the height and width to your desired values).

    I hope that helps!

    Phil

    Thread Starter HopRaiseE

    (@hopraisee)

    Thank you for your anwser but when i use your code, the carousel make my theme bugs. (I’am using “unite”).
    I tried to replace the percentage (100%) by a static number (200px). That works but the carrousel still changing his height while width is ok.

    I have 2 types of images in (Landscape and portrait) is it that the issu?

    the url of the page : https://fuxing.fr/?p=623

    the code actualy i’am using is

    <div style="height:200px; width:200px;">
    
    [image-carousel category="category1" interval="12000" showcaption="false" showcontrols="false"]
    
    </div>

    Plugin Author Phil Ewels

    (@tallphil)

    Yup, this is because your images are different heights. See the last FAQ:

    The carousel makes the content jump each time it changes
    You need to make sure that each image is the same height. You can do this by setting an Aspect ratio in the Edit Image section of the WordPress Media Library and cropping your images.

    Thread Starter HopRaiseE

    (@hopraisee)

    Okay, i’ll try, thank you for your helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Resize with shortcode options? because 2 caroussels’ is closed to new replies.