-
AuthorPosts
-
July 27, 2023 at 8:48 pm #1414715
My website: https://hiveultimate.com/ has a grey box above the header with some code inside it that shouldn’t be displayed. From looking at the theme I cannot see what is bringing this code in, but it only appeared in the last month or so.
The code is:
‘use strict’;var avia_is_mobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&’ontouchstart’ in document.documentElement){avia_is_mobile=!0;document.documentElement.className+=’ avia_mobile ‘} else{document.documentElement.className+=’ avia_desktop ‘};document.documentElement.className+=’ js_active ‘;(function(){var e=[‘-webkit-‘,’-moz-‘,’-ms-‘,”],n=”,o=!1,a=!1;for(var t in e){if(e[t]+’transform’ in document.documentElement.style){o=!0;n=e[t]+’transform’};if(e[t]+’perspective’ in document.documentElement.style){a=!0}};if(o){document.documentElement.className+=’ avia_transform ‘};if(a){document.documentElement.className+=’ avia_transform3d ‘};if(typeof document.getElementsByClassName==’function’&&typeof document.documentElement.getBoundingClientRect==’function’&&avia_is_mobile==!1){if(n&&window.innerHeight>0){setTimeout(function(){var e=0,o={},a=0,t=document.getElementsByClassName(‘av-parallax’),i=window.pageYOffset||document.documentElement.scrollTop;for(e=0;e
Any ideas as to why this is happening or how to fix it? The theme version is 5.6.4 and the wordpress version is 6.2.2.
Thanks!July 28, 2023 at 11:46 am #1414741Hey felix37,
Are you overriding for example header.php in a child theme? If so, then please try to activate the parent to see if the problem goes away. Also please remove any other custom code temporarily to see what happens then.
If you should need further help from us, then please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardJuly 31, 2023 at 8:40 pm #1415090There are no changes to the theme code.
August 1, 2023 at 6:16 am #1415113Hi,
Thank you for the update.
This seems to be an issue with the file compression (Autoptimize). Please try to deactivate the plugin temporarily and disable the Enfold > Performance > File Compression settings. Let us know if this resolves the issue.
We tried to access the using the account info above, but it is not working. Please check the info carefully or provide another admin account.
Best regards,
IsmaelAugust 1, 2023 at 2:13 pm #1415141Disabling Autoptimize and the file compression settings has fixed the issue.
Thanks for the help!
August 1, 2023 at 8:21 pm #1415198Hi,
Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardAugust 1, 2023 at 9:25 pm #1415204It can now be closed.
Thanks! -
AuthorPosts
- The topic ‘Unwanted code appearing at the top of website’ is closed to new replies.