Support » Plugin: TwentyTwenty » Slider position from shortcode?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have the same issue – please help!

    – AA

    I would also like to know if center aligning the slider is possible. It looks off on the page and really detracts from the appearance of this otherwise gorgeous slider. Shame.

    http://ericashapland.com/portfolio/underwater-diving-photo-corrections/

    I’d love to hear from someone, if there is a shortcode, CSS or php fix for this.

    Thank you,
    Erica

    Being married to a developer is awesome. This fix will make the slider auto-centered everywhere. So with this php edit, you will still not have control over changing the alignment should you want the slider left or right aligned.

    On you Dashboard go down to Plugins > Editor. Use the top right dropdown box to set “Select plugin to edit:” to TwentyTwenty. Below this dropdown you should see a list of php files. Select “twentytwenty/public/class-twentytwenty.php”.

    If you scroll to the very bottom of the file you should see this line of code:
    return '<div class="twentytwenty" class="twentytwenty-container" style="display: none; max-width: 100%; width: ' . $width . '; height: ' . $height . '">' . $images_code .

    and change that one line to:
    return '<div class="twentytwenty" class="twentytwenty-container" style="margin: 0 auto; display: none; max-width: 100%; width: ' . $width . '; height: ' . $height . '">' . $images_code .

    I just registred only to say you “THANKS A LOT!”
    You and your husband are awesome!

    hello everyone.

    you guys have any updates on the slider position topic? I`d love to only have my before picture visible when loading the page. I tried “creativetouch” solution but that only centers the slider, right?

    thanks everyone and good night

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Slider position from shortcode?’ is closed to new replies.