Przemysław Suszek Posted December 7, 2017 Share Posted December 7, 2017 I have very strange problem. I have two online shop. Both are on the default theme. Both has the same module which allow to add user email to newsletter by display pop-up. In the second one the website doesn't load <link rel="stylesheet" href="/js/jquery/plugins/fancybox/jquery.fancybox.css" type="text/css" media="all" /> <script type="text/javascript" src="/js/jquery/plugins/fancybox/jquery.fancybox.js"></script> And of course in conole I have $(...).fancybox is not a function The question is. How to check why in one website everything is fine and in the second is problem. The same themes. The same module. Different results. Kind regards Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted December 7, 2017 Share Posted December 7, 2017 first make sure jquery and facybox.js load correctly, then make sure the $(...) object existed, Link to comment Share on other sites More sharing options...
joseantgv Posted December 8, 2017 Share Posted December 8, 2017 Who's calling $(...).fancybox ? Maybe it's calling before loading fancybox library. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now