I tried putting the jQuery(document).foundation(); block in the header, the footer, and even tried using the data-attribute method; none of them change the component’s default behavior. Breakpoints confirmed that the code was getting run, just no change in the behavior.

The main test I used was to try to change the default “active” class to something else. No matter what I try, the Magellan links always get styled with “active” (the default, I think) even when the JS says otherwise. My only guess is that my foundation(); call is getting overriden somewhere later by something in rtPanel. Any insight would be much appreciated!

OK, removed, and no change in behavior, which is expected since this was going on before I tried to set those initialization parameters. Again, Magellan is working but I want to know how I’m supposed to alter those parameters.

I’m aware rtPanel is initiating it, and I think I found where: in rtp-concat-lib.js. It’s got:

Changing “active” there does affect the class name on the page, but inserting any of the other parameters seems not to. (I’m particularly keen on tweaking destination_threshold, since that’s the most broken part; it is totally misaligned from the element at the top of the page.)

I don’t have permission to install all of the extras needed to develop rtPanel on my own, and besides, it feels extremely heavy-handed to have to do so just to tweak some JS settings. Is that really the only way to do this?

(p.s. I know I probably sound frustrated, but I do want to say thanks for sticking with me and trying to help!)

Yes, I’m working on a child theme. The provided example was very convenient for noobs like me!

sagarjadhav:

You can not modify ‘destination_threshold’ in current rtPanel since its using foundation version ‘5.0.3’ and the latest version of foundation is ‘5.4.5’.

Ah ha! This explains it all. Unfortunately, I don’t have the admin privileges to install all of the development prereqs. The CSS hack I threw together will be acceptable for the time being. Do you know if rtPanel regularly adopts newer versions of Foundation?