• Resolved MKay

    (@mongia)


    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)
  • 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 8 years, 4 months ago by reachdigital.
    Thread Starter MKay

    (@mongia)

    You’re welcome, @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 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.