Menu icon Foundation
how to use foundation js plugin only

Hello guys i am searching for how to use foundation 6 plugins for my project like abide or equalizer. I dont want to use full foundation.js so anyone know about that ?

How to use js plugin only?

Foundation Jsfoundation 6foundation 6 js pluginsjs plugins

Hello guys i am searching for how to use foundation 6 plugins for my project like abide or equalizer. I dont want to use full foundation.js so anyone know about that ?

How to use js plugin only?

Jarryd Fillmore over 3 years ago

+1!

hassan over 3 years ago

Hello @Jarryd Fillmore I find out solution for this you just need to install foundation file from github and there you will have to go foundation_sites --> dist --> plugins there you must need to add these files in body tag after footer.

<script src="js/foundation.core.js"></script>
<script src="js/foundation.util.mediaQuery.js"></script>

these two are essential for only use foundation plugins in any project even with bootstrap.

after to add those lines. you need to call $(document).foundation(); in your js file

and then add any plugin file

<script src="js/foundation.abide.js"></script>

like i only want to use abide plugin so i included this file in my project now it will start work with foundation data attributes

and all plugin files you can find in plugini folder that i mentioned on top.

Thanks :)