Eu vejo muitos "Uncaught TypeError", mas nenhuma das respostas ajudou.
Parece que é algo entre tribe-events-ajax-calendar.js e Foundation.min.js
Se eu remover o Foundation.min.js, o datepicker funcionará sem erros, mas quando eu coloco de volta, recebo os erros. Aqui está o que meu inspetor Chrome mostra:
TypeError não capturado: Object [object Object] não tem método "bootstrapDatepicker" tribe-events-ajax-calendar.js: 42
(função anônima) tribe-events-ajax-calendar.js: 42
l Foundation.min.js: 18
c.fireWith Foundation.min.js: 18
y.extend.ready Foundation.min.js: 18
enter code here
quebra nesta linha (42) em tribe-events-ajax-calendar.js
var tribeBarDate = $ tribedate.bootstrapDatepicker (tribe_var_datepickerOpts) .on ("changeDate", função (e) {
Qualquer ajuda seria muito apreciada!
Respostas:
0 para resposta № 1Tente incluir o boot boot datepicker js após o arquivo foundation.js
gostar
<script src="http://junknlove.fervorinteractive.com/wp-content/themes/jnl/js/foundation.min.js"></script>
<script src="http://junknlove.fervorinteractive.com/wp-content/themes/jnl/js/jquery.foundation.orbit.js"></script>
<script src="http://junknlove.fervorinteractive.com/wp-content/themes/jnl/js/jquery.foundation.accordion.js"></script>
<script type="text/javascript" src="http://junknlove.fervorinteractive.com/wp-content/plugins/the-events-calendar/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js?ver=3.2"></script>