Menu icon Foundation

My Posts



My Comments

Samuel Earl commented on Samuel Earl's post about 3 years

I was able to fix this issue. This documentation gave me a clue: http://foundation.zurb.com/sites/docs/javascript.html#adding-plugins-after-page-load.
The problem that I had was that I was calling the following function on my main layout page only:
Template.layout.onRendered(function() {
$(document).foundation();
});
...but when my other templates were being called, the Foundation plugins were not being initialized on those other templates. I should have been using the above code block in each individual template's JavaScript file to re-call the .foundation() function for the corresponding templates.

Posts Followed

No Content

Following

    No Content

Followers

My Posts

My Comments

You commented on Samuel Earl's post about 3 years

I was able to fix this issue. This documentation gave me a clue: http://foundation.zurb.com/sites/docs/javascript.html#adding-plugins-after-page-load.
The problem that I had was that I was calling the following function on my main layout page only:
Template.layout.onRendered(function() {
$(document).foundation();
});
...but when my other templates were being called, the Foundation plugins were not being initialized on those other templates. I should have been using the above code block in each individual template's JavaScript file to re-call the .foundation() function for the corresponding templates.

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content