- This topic has 11 replies, 3 voices, and was last updated 6 years, 5 months ago by Tom.
December 22, 2015 at 5:15 pm #161548Pauline
Hi, I have just updated my generatepress theme and now some code is showing at the top of my site.
I have deactivated all plugins and it is not a plugin.
I have changed themes and it is not happening on any other theme.
Here is the code below, it is showing at the very top of my site. I have changed themes for the moment, but really want the generatepress theme back again.
thank you.December 22, 2015 at 5:16 pm #161549TomLead DeveloperLead Developer
It looks like a script either added by you or a plugin for “siteapps.com”.
Do you recall adding any scripts like this? If so, where did you add it?
If not, do you have any plugins that connect to siteapps.com?December 22, 2015 at 5:23 pm #161551Pauline
Hi Tom, thanks for reply, I have no idea of a plugin that connects to siteapps.com I don’t even know what siteapps.com is?
Before the update I had this added code below to ‘searchform’ and I copied it and added it again after the update to ‘searchform’
Problem is, I can’t remember why I did it in the first place but thought I better do it again. I have deleated it and updated searchform, but now it is blank. Would this be the problem, because the code is still there?
var cx = ‘partner-pub-8690195739326374:3160004724’;
var gcse = document.createElement(‘script’);
gcse.async = true;
gcse.src = (document.location.protocol == ‘https:’ ? ‘https:’ : ‘http:’) +
‘//cse.google.com/cse.js?cx=’ + cx;
var s = document.getElementsByTagName(‘script’);
Pauline.December 22, 2015 at 5:27 pm #161553Pauline
Tom, I just want to add, it is not there when I change to another theme.December 22, 2015 at 5:30 pm #161554Pauline
Ok I remember the script is for the google search form. 🙂December 22, 2015 at 5:31 pm #161555TomLead DeveloperLead Developer
That could be the problem – it’s hard for me to tell without seeing your files.
This code isn’t in the core theme anywhere – maybe it’s this plugin?: https://wordpress.org/plugins/siteapps/
If you think it’s somewhere in the theme, try re-installing it so all of the files are replaced with new ones.December 22, 2015 at 5:32 pm #161556TomLead DeveloperLead DeveloperDecember 22, 2015 at 5:33 pm #161557Pauline
No I havn’t fixed it Tom, the problem is still there, it is not the google search form script.December 22, 2015 at 6:05 pm #161560Pauline
ok thanks, I want to just let you know that I don’t have that plugin, and it can’t be the google search form script because that was working fine before theme update and how do I do another theme update?December 22, 2015 at 6:13 pm #161561TomLead DeveloperLead Developer
You can re-install by:
1. Activating another theme
2. Deleting GeneratePress
3. Re-installing GeneratePress: https://generatepress.com/knowledgebase/installing-generatepress/
That will make sure you have all of the default files.
Let me know 🙂January 10, 2016 at 8:35 am #164771rAF
it s not matter of plugin. I saw in an shared hosting that a kind of service offered by the provider, and which name is SITEAPPS, for strange reasons, insert that code in YOUR code.
This happen, when you have activated the SITEAPP service for your domain. So if you want solve, just deactivate that service on your domain.
Here the code… from siteapps
Hope can helpJanuary 10, 2016 at 11:34 am #164853
- You must be logged in to reply to this topic.