Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #319523

    Hey guys,

    The javascript from js/avia.js has been working fine until I tried adding my custom code to it just to test something, I put this

    if (is_page($post) && is_front_page() ) {
    $(“#nav1”).on(‘click’, function(){
    window.location = “http://shareholderapp.com”;
    });
    /*do stuff*/ }

    And I have since removed the custom code and it is still not initiating avia.js properly

    Could I get some kind of guidance on this fix?
    It is affecting a lot of the text and css/animations of the page

    Thanks a head for any help!

    Colin J

    #319528

    I have removed the error’ed code and it still says it’s there, so it’s still not reading avia.js correctly even after erasing the error code

    #319683

    Hi!

    Thank you for using the theme.

    Please get a fresh copy of avia.js file then override the old one via FTP. The conditional code like is_page that you’re trying to add is php. It won’t work on a javascript file.

    Best regards,
    Ismael

    #320113

    Thanks Ismael, I’ll try that out

    #320232

    Hi!

    Please try and let us know so we can mark this thread as resolved or assist you further :)

    Regards,
    Yigit

    #320832

    Hey guys,

    I replaced the avia.js file via the FTP and its still not overriding the previous code
    I also deleted custom.js that was’nt reading as well, and both files are still rendering to be there

    When I inspect the DOM with Chrome it says file avia.js?ver=2 not just the file avia.js,
    do you think that has anything to do with it?

    Any ideas? My client is pretty upset

    Thanks a head of time

    #320838
    This reply has been marked as private.
    #320971

    Hey!

    Please post the link of the website here. We would like to check it. Make sure that you’re running Enfold 2.9.2 with WordPress 4.0.

    Best regards,
    Ismael

    #321429

    shareholderapp.com

    Thanks Ismael

    #321562

    Hi,

    Can you please create us an temporary FTP account? i’ll try to reset the js/avia.js file.

    Regards,
    Josue

    #321578
    This reply has been marked as private.
    #321584

    Hi!

    The problem is that you are putting an avia.js file from 2.9.2 while the rest of the files are from 2.8.1. Please try re-uploading a fresh copy of the latest version of Enfold.

    Regards,
    Josue

    #321624

    I think it finally worked, thanks a lot Josue and Ismael, really appreciate it

    #321625

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.