-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to extend Suit Bootstrap? (include js after bootstrap.min.js) #149
Comments
The fastest solution, but not the cleanest, i could think of is adding You can do this in {% block extrahead %}
<script src="{% static 'suit/bootstrap/js/bootstrap.min.js' %}"></script>
{{ block.super }}
{% endblock %} |
I had to move the declarations from footer to head, as you mentioned, but cleaning also Is this a viable fix? (to move js to head) django-sekizai seems to be putting the JSs in the footer. Maybe we can look at their code |
The fix is easy one, but the decision either to move |
I moved
|
In suit, bootstrap.min.js is included within the template after the page content.
Bootstrap plugins needs to be included after the bootstrap.min.js inclusion. I'm willing to use the Media class to include this files, as needed.
The problem is that Media files are included in the head, so they cant extend bootstrap, which is instantiated later.
Any tips on the best way to overpass this issue?
The text was updated successfully, but these errors were encountered: