Support » Plugin: TwentyTwenty » Multiple instances on one page

  • Resolved katiemckinney

    (@katiemckinney)


    I would like to use this comparative slider to display before/after versions of residential remodels, etc. Ideally, I want to display two (or more) of them side by side responsively. The only way I have been able to make it happen is to put them in a table (like on this page) but then it is not responsive on mobile devices.

    I also want to embed this within longer expanses of text, but can’t get the text to wrap around the slider.

    How can I make these things happen?

    https://wordpress.org/plugins/twentytwenty/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’d like to do the same. How can this be accomplished?

    My suggestion is to use the twentytwenty-wrapper class to work with the before-and-after images.

    You’ll have to do some research into the CSS required to display the two images side by side – but that should be similar to displaying anything side by side and not specific to TwentyTwenty.

    For instance,

    `
    <div class=”twentytwenty-side-by-side”>
    [twentytwenty]

    [/twentytwenty]
    [twentytwenty]

    [/twentytwenty]
    </div>

    <style>
    .twentytwenty-side-by-side .twentytwenty-wrapper {
    /* operate on the images here */
    }
    </style>
    `

    Good luck!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple instances on one page’ is closed to new replies.