WordPress.org

Forums

Smart Slider 2
[resolved] Center Slider on page? (17 posts)

  1. BrentwGraham
    Member
    Posted 1 year ago #

    I'm unable to find any control to have the slider be centered in my page. I've also attempted to center the shortcode text within the page content editor with no luck.

    Anybody figure out how to center the slider on a page?

    Thanks!

    https://wordpress.org/plugins/smart-slider-2/

  2. nextendweb
    Member
    Plugin Author

    Posted 1 year ago #

    Hi!

    Could you try to put the shortcode into a centered div?

    <div style="margin: 0 auto;">[smartslider shortcode]</div>

  3. BrentwGraham
    Member
    Posted 1 year ago #

    Yeah, I think I had page caching on and it wasn't updating.

    All is great now! Thank you! Great plugin! Worth the money for sure.

  4. takepico
    Member
    Posted 1 year ago #

    I'm unable to find any control to have the slider be centered in my page,too.
    I use PHP code.

    Is it wise of me to upgrade it with full version?

    https://wordpress.org/plugins/smart-slider-2/

  5. takepico
    Member
    Posted 1 year ago #


  6. takepico
    Member
    Posted 1 year ago #


  7. takepico
    Member
    Posted 1 year ago #


  8. nextendweb
    Member
    Plugin Author

    Posted 1 year ago #

    Have you tried what I mentioned previously?

    <div style="margin: 0 auto;"><?php echo do_shortcode('[smartslider shortcode]'); ?></div>

  9. takepico
    Member
    Posted 1 year ago #

    Of course.
    But he/she sends the left.
    Is it caused by basic style.css?

  10. nextendweb
    Member
    Plugin Author

    Posted 1 year ago #

    I should check your site, as the center align in HTML seems easy thing, but it is more complex than it seems. Could you send me an email with a link to your page? roland[@@@]nextendweb.com

  11. takepico
    Member
    Posted 1 year ago #

    Thank you very much for your quick response.
    I sent the URL of my WEB site by an email to you.
    If I have you confirm it and can advise for this problem, I am happy.

  12. nextendweb
    Member
    Plugin Author

    Posted 1 year ago #

    I haven't received your email. Could you try to send it again? Or please try our contact form: http://www.nextendweb.com/help/contact/

  13. takepico
    Member
    Posted 1 year ago #

    I'm very Sorry.
    I send a message from your contact form.

  14. sencerim
    Member
    Posted 1 year ago #

    @nextendweb have the same issue, superior plugin but couldnt center it on the header.php?

  15. nextendweb
    Member
    Plugin Author

    Posted 1 year ago #

    Please write us an email and we will check your problem. :)

  16. nextendweb
    Member
    Plugin Author

    Posted 1 year ago #

    Well if your template container element is not fit to your needs then there is a time to calculate a little bit. It can be the most precise solution in some case.

    For example: You have a 1000px wide container and your slider is only 600px but you would like to align the slider to the center of the container. First of all you have to subtract these two numbers. (1000-600=400) The result, so the empty space is 400px, now you have to divide it to two part, because you need margin from left and right too. The final result is 200px. Okay now you have to write these two values into the right place. Please go into the Smart Slider 2 -> choose your slider -> click on the edit slider button and the fourth parameter is the margin, so just write the values. (you can find a small toggle after the margin value where you can switch the percent to pixel value)

  17. nextendweb
    Member
    Plugin Author

    Posted 1 year ago #

    In the version 2.3.10 we added the Slider align parameter into the slider settings. You can find this parameter if you go to the Smart Slider -> Choose a slider -> Edit slider.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Smart Slider 2
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic