Hi All,

Have the latest 4.0 install and for some reason can not get waypoints to work. JS is loaded up through .info file and eveything seems correct but just cant get it to work. Any ideas?? Has anyone else got waypoints working for them?

Comments

fubhy’s picture

Category: bug » support

I assume you are talking about waypoint.js?

benjmarr’s picture

Correct

benjmarr’s picture

anyone? still struggling here.

fubhy’s picture

I am still at drupalcon and highly busy. You'll have to figure it out on your own or wait til monday, sorry.

benjmarr’s picture

Don't be sorry!! If you could have a look when you get a chance next week that would be great!!

fubhy’s picture

Status: Active » Postponed (maintainer needs more info)

So... I loaded waypoint.js with my test theme's .info file, added a waypoint in a behavior, worked.

With 0 friction basically... Hmm, not sure where you were running into problems. Can you explain a bit what you did and what exactly didn't work? From the issue summary I can only tell that the .js was loaded but then you had problems with getting waypoints to work. So the .js is loaded, right? Does the waypoint.js API not work for you? As in, is it not available to you? Or are you just having problems with implementing the waypoint.js API? If it's the latter there is not much I can help you with as I don't know all the .js libraries in the world and can't provide any support for those of course. In any case, please give us some more detail to your problem. Thanks!

benjmarr’s picture

strange... i did a complete fresh install and still no luck. I did however get it to work using the following-

I ended up having to add this to the bottom of the custom layout.tpl file-

$('#my-sticky-element').waypoint('sticky');

They would load up if declaring in my sub-themes .info file but for some reason wouldn't work. This is what it looks like when pulled from the .info file

not sure if it has something to do with the ?mtxp73 ??

any thoughts?? im happy to leave it as is while deving but probably not the right way to do it on a production site. For some reason i even need to declare the jquery location in the layout.tpl file otherwise it wont work.

steinmb’s picture

Version: 7.x-4.0 » 7.x-4.x-dev
Issue summary: View changes

@brandercreative can we close this?