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

General questions pertaining to how certain issues can be resolved. This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.
Forum rules
This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.

1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"
Posts: 13
Joined: 22 Oct 2014, 08:48

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

Post by tango » 17 Aug 2018, 07:47

I have a site at https://www.barplan.com 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.

Posts: 5066
Joined: 27 Oct 2009, 10:46

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

Post by Colin » 17 Aug 2018, 23:47

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.

Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

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

Post by drake » 10 Sep 2018, 14:39

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.