Page 1 of 1

/* ]]> */ at top and bottom of page

Posted: 17 Aug 2018, 07:47
by tango
I have a site at that has the following comment code echoed at the top and bottom of every page. Cant figure out where it's coming from. I hate to retire this classic theme, but it's looking like it's now my only option.

Re: /* ]]> */ at top and bottom of page

Posted: 17 Aug 2018, 23:47
by Colin
There is no need to do that as it is not a bug but an error in your particular site.

What is being displayed is intended to be a php comment and somehow it is being rendered on your pages. This could be coming from several different sources and all need checking out. Disable all your plugins and see if it goes away, if it does re-enable one at a time until it reappears and then you know the culprit. Check any custom code that you have. Finally delete Suffusion and download a new copy form the post on this forum and reinstall. All the theme settings are stored in the database so you won't lose anything.

Ideally all of this should be done on a development site rather than your live site, then when you know the fix it is easy and quick to apply to live.

Re: /* ]]> */ at top and bottom of page

Posted: 10 Sep 2018, 14:39
by drake
Your HTML markup is broken. That part of code is a closure of a CDATA block related to some Amazon script.
That whole code need to be included in <head> section, but instead, from that code you already have the <body> section.
It is almost impossible to say from outside why this happens.
As Colin said, can be a plugin, can be your own edits or simply can be a script added in a wrong place or in a wrong way.
Not the theme have problems, otherwise on all our sites will see the same characters on the top left.