creativetouch
Forum Replies Created
-
Forum: Plugins
In reply to: [TwentyTwenty] Center images?See this topic. I think it might be what you need. 🙂
https://ww.wp.xz.cn/support/topic/slider-position-from-shortcode?replies=4
Forum: Plugins
In reply to: [TwentyTwenty] Slider position from shortcode?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 .Forum: Plugins
In reply to: [TwentyTwenty] Slider position from shortcode?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