WordPress.org

Forums

Popups - WordPress Popup
No proper alignment (9 posts)

  1. gabu69
    Member
    Posted 1 year ago #

    Buen dia
    Cuando trato de centrar el de facebook:

    <p style="text-align: center;">[spu-facebook href="https://www.facebook.com/Recreo" layout="box_count"]</p>

    me lo muestra de lado izquierdo
    porque sera?

    https://wordpress.org/plugins/popups/

  2. Damian
    Member
    Plugin Author

    Posted 1 year ago #

    You have latest version? Can i see your site?

  3. gabu69
    Member
    Posted 1 year ago #

    Yeap, latest version

    bit.ly/1pFFP8d

  4. Damian
    Member
    Plugin Author

    Posted 1 year ago #

    I need to check why is not picking the proper style, in the mean time you can fix it by adding this:

    .spu-shortcode {
    float: none;
    margin: 0 auto;
    display: block;
    width: 77px;
    }
  5. jgrmstr
    Member
    Posted 1 year ago #

    Damian, please don't manage alignment style with your plugin. It should be done by site owners.
    Because now, with every update, you change the CSS rules, and we have to re-edit our override CSS rules...

  6. Damian
    Member
    Plugin Author

    Posted 1 year ago #

    That's true, but most of the people know nothing about css, so I need to give them some basic alignment. All this changes were because I was trying to find the most stable version that suits everyone. There shouldn't be much more changes from now.

    Sorry for the trouble!

  7. jgrmstr
    Member
    Posted 1 year ago #

    It will be difficult to suit every one's needs...

    I hope you will freeze those alignment CSS changes at one point.

  8. gabu69
    Member
    Posted 1 year ago #

    The center alignment is working now with the update

    BUT

    for example in between facebook and the twitter buttons i have a

    <h1 style="text-align: center;">Twitter</h1>

    which is not being respected

    so that is an issue as well

  9. Damian
    Member
    Plugin Author

    Posted 1 year ago #

    Gabu the aligment works only for popup shortcodes and when used one next to the other. If you have other codes, or you don't have shortcodes one next to the other you will have to override the CSS with your own style.

    for example for that h1 you will need to apply you own style.Something like
    <h1 style="clear:left">Twitter</h1>

  10. Damian
    Member
    Plugin Author

    Posted 1 year ago #

    Gabu the aligment works only for popup shortcodes and when used one next to the other. If you have other codes, or you don't have shortcodes one next to the other you will have to override the CSS with your own style.

    for example for that h1 you will need to apply you own style.Something like
    <h1 style="clear:left">Twitter</h1>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.