Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sailpilot

    (@sailpilot)

    I figured out a quick and dirty solution to right justifying the buttons.

    You have to change two lines in simple-share-buttons-adder.php

    change

    // center if set so
    $htmlShareButtons.= ($arrSettings['ssba_align'] == '<center>' ? 'center' : NULL);

    to

    // center if set so
    $htmlShareButtons.= ($arrSettings['ssba_align'] == 'center' ? '<div align="right">' : NULL);

    and change

    // close center if set
    $htmlShareButtons.= ($arrSettings['ssba_align'] == 'center' ? '</div>' : NULL);
    $htmlShareButtons.= '</center>';

    to

    // close center if set
    $htmlShareButtons.= ($arrSettings['ssba_align'] == 'center' ? '</div>' : NULL);
    $htmlShareButtons.= '</div>';

    hopefully the next version will have a right justification option so this change will not be necessary.

    Thread Starter sailpilot

    (@sailpilot)

    sorry that second change should have been from

    // close center if set
    $htmlShareButtons.= ($arrSettings['ssba_align'] == 'center' ? '</center>' : NULL);
    $htmlShareButtons.= '</center>';

    to

    // close center if set
    $htmlShareButtons.= ($arrSettings['ssba_align'] == 'center' ? '</div>' : NULL);
    $htmlShareButtons.= '</div>';
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘right justifying buttons’ is closed to new replies.