WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] SexyBookmarks (an invalid / misplaced quotation in sharer function) (3 posts)

  1. riversatile
    Member
    Posted 4 years ago #

    Hi,

    When I add the Facebook icon sharer, I have 1 error that is causing multiple errors on pages.

    I noticed that a quotation in the ONCLICK event is misplaced / not valid.

    See the quotation before "sharer"
    Here is the code :

    <li class="shr-facebook">
    <a href="http://www.facebook.com/share.php?v=4&src=bm&u=http://www.riversatile.fr/2010/07/11/iniesta-sauve-la-mise/&t=Iniesta+sauve+la+mise"  rel="nofollow" class="external" title="Partagez-le sur Facebook" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','www.facebook.com']);window.open(this.href,"sharer','toolbar=0,status=0,width=626,height=436'); return false;">&nbsp;</a>
    </li>
  2. renkai
    Member
    Posted 4 years ago #

    I was getting the same error.

    In line 143 of html-helpers.php (in the includes folder) I removed the \" in front of window.open and now it works. So the line is now like this

    $onclick = " onclick=window.open(this.href,'sharer','toolbar=0,status=0,width=626,height=436'); return false;\"";

  3. riversatile
    Member
    Posted 4 years ago #

    Not really resolved... I've just removed the Facebook sharer icon and left the others.

Topic Closed

This topic has been closed to new replies.

About this Topic