Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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!

    #1414741

    Hey 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,
    Rikard

    #1415090

    There are no changes to the theme code.

    #1415113

    Hi,

    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,
    Ismael

    #1415141

    Disabling Autoptimize and the file compression settings has fixed the issue.

    Thanks for the help!

    #1415198

    Hi,

    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,
    Rikard

    #1415204

    It can now be closed.
    Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Unwanted code appearing at the top of website’ is closed to new replies.