Title: Centering your slideshow
Last modified: August 20, 2016

---

# Centering your slideshow

 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/)
 * Hi everyone. A few people have been asking me how to center align their slideshows,
   especially as the v2.0 update has re-aligned what was previously centered.
 * For center alignment, there is a simple fix. Simply use the shortcode below:
 * `<div align="center">[easingsliderlite]</div>`
 * That should do the trick. In the future, we will be adding a shortcode attribute
   for this. Until then, use this!
 * Matthew.
 * [http://wordpress.org/extend/plugins/easing-slider/](http://wordpress.org/extend/plugins/easing-slider/)

Viewing 15 replies - 1 through 15 (of 40 total)

1 [2](https://wordpress.org/support/topic/centering-your-slideshow/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/centering-your-slideshow/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/centering-your-slideshow/page/2/?output_format=md)

 *  [Alexandre611](https://wordpress.org/support/users/alexandre611/)
 * (@alexandre611)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537802)
 * Hey.
    What if you are using the function on a php file of the theme? I had an
   older version of the plugin and I managed to center the slideshow using the left
   padding on the options. On the latest version of the plugin there’s no options
   for padding, so I can’t center the slideshow.
 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537803)
 * Hey, the same trick should work. Just replace the shortcode with the PHP function,
   like this:
 *     ```
       <div align="center">
       <?php if ( function_exists( 'easingsliderlite' ) ) { easingsliderlite(); } ?>
       </div>
       ```
   
 * Should do the trick 🙂
 *  [Alexandre611](https://wordpress.org/support/users/alexandre611/)
 * (@alexandre611)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537805)
 * I had tried that but it would give me a syntax error. Turns out that I had forgot
   to write the closing tags for the php. lol
    Thank you for your reply though, 
   it helped me anyway and it might help others as well.
 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537806)
 * No problem at all 🙂 Forgetting the tags is an easy mistake to make, always got
   to watch out for it!
 *  [vlad90](https://wordpress.org/support/users/vlad90/)
 * (@vlad90)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537812)
 * Not to be a party pooper, but I like to prefer to avoid deprecated markup where
   possible. I suppose I’ll think up some convoluted css to fix it.
 * edit: Probably not as simple as putting a div with a style attribute, since all
   the Riva Slider css is marked important. Any chance you can change the following
   css? It should keep it centered.
 * [http://oi50.tinypic.com/21e20yo.jpg](http://oi50.tinypic.com/21e20yo.jpg)
 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537825)
 * Hi [@vlad90](https://wordpress.org/support/users/vlad90/), you’re right, but 
   using an align div is the quickest fix and has a much higher success rate than
   using CSS (learnt this the hard way). Setting the margin to auto doesn’t always
   work.
 * The CSS property you’ve mentioned has to remain the way it is to ensure the slideshow
   displays correctly. If you look at the CSS, the top section is rules I’d advise
   you don’t change, important for structural purposes. The bottom section contains
   editable properties.
 * Using important rules is never a great idea, but when it comes to ensuring that
   the slideshow is not destroyed visually by themes or other plugins, it is essential
   we override all of the possibilities to provide a solution “that just works”.
 * You could try putting a <div> around the slideshow and applying CSS ‘margin: 
   0 auto;’ to that, rather than altering the slideshow CSS itself. Alternatively,
   if you want to go “all out”, you can disable the plugin styling in its “Settings”
   panel and use your own.
 *  [aly22](https://wordpress.org/support/users/aly22/)
 * (@aly22)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537880)
 * Thanks, added the tag around the PHP function in my template and back to center!
   Anxiously awaiting the arc effect and borders 🙂
 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537881)
 * [@aly22](https://wordpress.org/support/users/aly22/), they’ll be here soon 🙂
   Stay tuned.
 *  [Dawn Kelly](https://wordpress.org/support/users/dawn-kelly/)
 * (@dawn-kelly)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537902)
 * I’m not very versed in code. My slideshow is no longer centered and I want to
   place the code you put at the top of this thread in my blog code, but I don’t
   know where exactly to place it. Can you tell me where? Is it under “appearance,”“
   editor”?
 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537903)
 * If you’re displaying the slideshow inside a particular post or page, you’ll need
   to use the code above inside the post/page editor within WordPress. Simply add
   it to the post content.
 * If you are editing the theme directly, you might need to get some help from the
   theme developer, if you’re not familiar in doing so yourself. You’ll need to 
   use the PHP function to display the slideshow, rather than the shortcode. However,
   you still do the same and wrap it inside ‘<div align=”center”>’ and ‘</div>’.
 * Sadly I can’t really help you much more from there. Have a look into some of 
   the basic WordPress functionality such as shortcode and theme file structures
   for some information. Definitely a great place to get started.
 *  [msagovac](https://wordpress.org/support/users/msagovac/)
 * (@msagovac)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537912)
 * Hello, Matthew,
 * Centering plugin looks okay. Image slides on center when resizing web browser
   stills good.
 * This code works. Okay…
 *     ```
       <div align="center">
       <?php if ( function_exists( 'easingsliderlite' ) ) { easingsliderlite(); } ?>
       </div>
       ```
   
 * But, how can I add neigbours images from left of center images and right image
   after center? Problems appears that center would’t consistenlty if I’m resizing
   browser.
 * if class `easingsliderlite-slide` is for inactive images this should be on left
   and right side, active class is center.
 * How can I make to FULL width (full width screen) with fixed image on center and
   neighbour images on left and right sides?
 * Maybe add duplicate of code and change function in easingsliderlite_left() and
   easingsliderlite_right? But how to constantly centering image on center so not
   moving? Hm maybe absolute class?
 * Is there any plugin that can do with WP?
 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537913)
 * Hi [@msagovac](https://wordpress.org/support/users/msagovac/), I’m not quite 
   sure I understand, but it sounds like you are looking for a “carousel” rather
   than a slider. These tend to show multiple images at once, with the current active
   image in the center.
 * Unfortunately Easing Slider can’t do this.
 *  [msagovac](https://wordpress.org/support/users/msagovac/)
 * (@msagovac)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537914)
 * Hello, correct carousel. But if you resize it to full it will slides, you can
   view all slides (1,2,3) but only what you need it to centering all slides to 
   page. I think that can do with this plugin too.
 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537916)
 * I’m sorry, but I’m unsure what you mean. I’m not sure if Easing Slider can do
   this or not. My apologies.
 *  [evgeniy.chme](https://wordpress.org/support/users/evgeniychme/)
 * (@evgeniychme)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/centering-your-slideshow/#post-3537919)
 * Where should I plugin this code: function.php? easing-slider/easingsliderlite.
   php?

Viewing 15 replies - 1 through 15 (of 40 total)

1 [2](https://wordpress.org/support/topic/centering-your-slideshow/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/centering-your-slideshow/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/centering-your-slideshow/page/2/?output_format=md)

The topic ‘Centering your slideshow’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easing-slider_262626.svg)
 * [Easing Slider](https://wordpress.org/plugins/easing-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easing-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easing-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/easing-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easing-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easing-slider/reviews/)

## Tags

 * [center](https://wordpress.org/support/topic-tag/center/)
 * [riva slider lite](https://wordpress.org/support/topic-tag/riva-slider-lite/)
 * [slideshow](https://wordpress.org/support/topic-tag/slideshow/)

 * 40 replies
 * 15 participants
 * Last reply from: [kwinpreach](https://wordpress.org/support/users/kwinpreach/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/centering-your-slideshow/page/3/#post-3538020)
 * Status: not a support question