Support » Plugin: Simple Social Buttons » Buttons at the start and at the end, but only if the post is long enough

  • Resolved bufny

    (@bufny)


    A very short post, lets say 2 or 3 lines, with buttons placed both at the start and at the end of the post looks ugly. It will be useful an option (checkbox) to display the buttons in both places only if the length of the post exceeds a certain value (textbox).

    I made for this a very stupid hardcoded stuff:

    function insert_buttons($content) {
      // ...
      if($this->settings['afterpost'] && strlen($content) > 10000)

    http://wordpress.org/extend/plugins/simple-social-buttons/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Buttons at the start and at the end, but only if the post is long enough’ is closed to new replies.