Tagged: javascript, jQuery, not working
-
AuthorPosts
-
September 16, 2014 at 2:05 am #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 pageThanks a head for any help!
Colin J
September 16, 2014 at 2:16 am #319528I 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
September 16, 2014 at 9:24 am #319683Hi!
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,
IsmaelSeptember 16, 2014 at 7:57 pm #320113Thanks Ismael, I’ll try that out
September 17, 2014 at 1:53 am #320232Hi!
Please try and let us know so we can mark this thread as resolved or assist you further :)
Regards,
YigitSeptember 18, 2014 at 3:00 am #320832Hey 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 thereWhen 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
September 18, 2014 at 3:33 am #320838This reply has been marked as private.September 18, 2014 at 8:29 am #320971Hey!
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,
IsmaelSeptember 18, 2014 at 7:38 pm #321429shareholderapp.com
Thanks Ismael
September 18, 2014 at 11:21 pm #321562Hi,
Can you please create us an temporary FTP account? i’ll try to reset the js/avia.js file.
Regards,
JosueSeptember 18, 2014 at 11:45 pm #321578This reply has been marked as private.September 18, 2014 at 11:59 pm #321584Hi!
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,
JosueSeptember 19, 2014 at 3:02 am #321624I think it finally worked, thanks a lot Josue and Ismael, really appreciate it
September 19, 2014 at 3:03 am #321625You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.