Issue with Custom Share Buttons with Floating Sidebar (csbwfs) plugin
-
Hi,
Autoptimize for some reasons changes the javascript of the share button links of the plugin CSBWFB. This might be something that came with one of the last updates as I didn’t have any issues in the past. I tried deactivating/activating autoptimize and when it’s deactivated the problem disappears.
The original code of one share button is the following:
<a href="javascript:" onclick="javascript:window.open('//www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&jump=close', '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;" target="_blank"><i class="csbwfs_facebook"></i></a>
When autoptimize is activated, here is how this code is changed to:
<a href="javascript:" onclick="javascript:window.open(" www.facebook.com="" sharer="" sharer.php?u="+encodeURIComponent(location.href)+&title=+encodeURIComponent(document.title)+&jump=close'," '',="" 'menubar="no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return" false;"="" target="_blank"><i class="csbwfs_facebook"></i></a>
Do you have any idea how to fix this?
Thanks a lot in advance,
Florian
- The topic ‘Issue with Custom Share Buttons with Floating Sidebar (csbwfs) plugin’ is closed to new replies.