Title: Error while validating
Last modified: October 17, 2016

---

# Error while validating

 *  Resolved [MKay](https://wordpress.org/support/users/mongia/)
 * (@mongia)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-while-validating/)
 * Good morning! Thank you for this great plugin.
    I encountered an error while 
   validating my site’s Html: at line 21 of ssba_styles.php you wrote the following
   code
 * `return str_replace( '>', ' id=\'st_insights_js\'>', $tag );`
 * This causes the script putting the attribute id also in the end tag. Is there
   any reason for this?
    If the answer is no, I suggest you to change the line with
   the following
 * `return str_replace( '<script', '<script id=\'st_insights_js\'', $tag );`
 * This will repair the issue.
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [reachdigital](https://wordpress.org/support/users/reachdigital/)
 * (@reachdigital)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/error-while-validating/#post-8332712)
 * I have the same issue..
 * Thanks @mogia,
 * `return str_replace( '<script', '<script id=\'st_insights_js\'', $tag );`
 * I edited simple-share-buttons-adder/inc/ssba_styles.php line 21.
 * Works perfectly!
 * Do you think there will be any issues if the plugin gets updated?
 * Thanks again.
    -  This reply was modified 9 years, 6 months ago by [reachdigital](https://wordpress.org/support/users/reachdigital/).
 *  Thread Starter [MKay](https://wordpress.org/support/users/mongia/)
 * (@mongia)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/error-while-validating/#post-8332905)
 * You’re welcome, [@reachdigital](https://wordpress.org/support/users/reachdigital/)!
 * If the next update corrects the issue, there will be no problems at all, while
   if doesn’t you have to change that line again.
 * Anyway, I think it’s only a little oversight and [@davidoffneal](https://wordpress.org/support/users/davidoffneal/)
   will correct the line in the next release!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error while validating’ is closed to new replies.

 * ![](https://ps.w.org/simple-share-buttons-adder/assets/icon-256x256.png?rev=2661516)
 * [Simple Share Buttons Adder](https://wordpress.org/plugins/simple-share-buttons-adder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-share-buttons-adder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-share-buttons-adder/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-share-buttons-adder/reviews/)

## Tags

 * [validation](https://wordpress.org/support/topic-tag/validation/)
 * [Validation error](https://wordpress.org/support/topic-tag/validation-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [reachdigital](https://wordpress.org/support/users/reachdigital/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/error-while-validating/#post-8332712)
 * Status: resolved