I need to remove a few different pieces of code from my webpages. They are tracking scripts for marketing. I have gone through the XTheme editor and cpanel folders looking for .php files to remove these scripts, but have no idea where to find them. I am using the Ethos stack in X Theme. Can you provide any information on where to find code that has been inserted in our site previously?
Hello Luke,
The code you are referring to isn’t something from X. Perhaps it is from a plugin so try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
Let us know how it goes.
This code did not come from a plugin. It is a specific tracking tactic for digital marketing. This code would have had to have been inserted into a file either directly in a .php file or through a plugin. If I remove plugins the code will stay there. How can I see a real page of code that I can edit? All I see are pages like this:
<?php // ============================================================================= // HEADER.PHP // ----------------------------------------------------------------------------- // The site header. // ============================================================================= x_get_view( 'header', 'base' );Hi Luke,
This code is not from the default package of X so it must be something that was added by you or a developer if you have worked with one.
Try checking the functions.php file of your child theme and see if the code is added from there.
You may also check the files in the framework directory login through FTP
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
