Title: Digg Digg extra paragraph bug
Last modified: August 21, 2016

---

# Digg Digg extra paragraph bug

 *  [dezh](https://wordpress.org/support/users/dezh/)
 * (@dezh)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/digg-digg-extra-paragraph-bug/)
 * Hello again,
 * Thank you for your usefull plugin.
 * I had small bug with Digg Digg. Activating floating display adds extra new lines
   to posts begining with a paragraph (“<p>”).
 * ” added by Digg Digg integrateFloatingButtonsIntoWpContent function, with this
   line of code:
    `$content = $dd_start_anchor . $content . $dd_end_anchor . $dd_floating_bar;`
 * <p>My post</p></p>”
 * To fix this issue, I had to make small changes in integrateFloatingButtonsIntoWpContent
   function, in order to place “dd_start” after first <p>, here is my code:
 *     ```
       $check_pos = strpos($content, '<p>');
   
       if ($check_pos === false || $check_pos != 0)
           $content =  $dd_start_anchor . $content . $dd_end_anchor . $dd_floating_bar;
       else
           $content = '<p>' . $dd_start_anchor . substr($content, 3) . $dd_end_anchor . $dd_floating_bar;
           }
       ```
   
 * return $content;
 * Can you please apply this patch to Digg Digg or fix this issue the way you want.
 * My posts were writen in wordpress text editor, so they weren’t formated as standart
   wordpress posts, thats why they start with a paragraph.
 * Best regards
 * [http://wordpress.org/extend/plugins/digg-digg/](http://wordpress.org/extend/plugins/digg-digg/)

The topic ‘Digg Digg extra paragraph bug’ is closed to new replies.

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

## Tags

 * [paragraph](https://wordpress.org/support/topic-tag/paragraph/)

 * 0 replies
 * 1 participant
 * Last reply from: [dezh](https://wordpress.org/support/users/dezh/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/digg-digg-extra-paragraph-bug/)
 * Status: not resolved