Menu icon Foundation
Javascript issue with Foundation 4

Hello,

I built a site a while ago with Foundation 4 and it seems to be having a problem with Javascript. The site is: http://aok.websitetestlink.us/. The two issues are that the promotion slider on the homepage doesn’t slide and the mobile menu button doesn’t work.

I switched to the Twenty Fourteen theme and the slider works. I also loaded a fresh version of foundation 4 and the slider still didn’t work. Can you help me figure out what is going on?

Thanks,
Kevin

foundation4javascripterror

Hello,

I built a site a while ago with Foundation 4 and it seems to be having a problem with Javascript. The site is: http://aok.websitetestlink.us/. The two issues are that the promotion slider on the homepage doesn’t slide and the mobile menu button doesn’t work.

I switched to the Twenty Fourteen theme and the slider works. I also loaded a fresh version of foundation 4 and the slider still didn’t work. Can you help me figure out what is going on?

Thanks,
Kevin

This post has been closed. No new replies can be added.

Thomas van de Meer about 5 years ago

You need to include foundation.topbar.js for the mobile menu to work. Don't know what you mean with the 'promotion slider'.

Esa Rantanen about 5 years ago

Hi Kevin,

it seems your theme is not loading jQuery but zepto.js instead, which is ...bad...

Remove the zepto/jquery function from footer, and let promotion slider load WordPress included jQuery. If the slider can't handle it, just add wp_enqueue_script('jquery' ); to your themes functions.php

Kevin about 5 years ago

Thank you very much for your help. I would have never thought about the zepto.js script. I have removed it and now it works correctly. Thank you!