Breaks site feed
-
I had the following issue:
XML Parsing Error: junk after document element
Location: https://www.website.com/feed/
Line Number 6, Column 1:<?xml version=”1.0″ encoding=”UTF-8″?>The plugin is adding the following above the opening xml tag:
<script type="text/javascript"><!-- wpa2a.targets=[]; wpa2a.html_done=true;if(wpa2a.script_ready&&!wpa2a.done)wpa2a.init();wpa2a.script_load(); //--></script> <?xml version="1.0" encoding="UTF-8"?>
I fixed by adding the following:
if(is_feed()) return;
into the function A2A_SHARE_SAVE_footer_script()It would be great if this could be added into the plugin on the next update. I’ll hang off on any updates until the issue is addressed.
Thanks for the great plugin. ??
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Breaks site feed’ is closed to new replies.