【发布时间】:2015-11-02 15:17:31
【问题描述】:
我正在使用引导通知向我的最终用户显示信息性消息。 http://goodybag.github.io/bootstrap-notify/
我有一个DIV 叫
<div class="notifications bottom-right"></div>
理论上,库应该处理 JS 我已确保库已加载,但仍然没有显示通知窗口我不知道为什么我希望在页面加载时发生这种情况,所以如果有积分待定。
我将如何调整脚本标签以通过PHP 实现这一目标?
<script>
$('.bottom-right').notify({
message: { text: 'Aw yeah, It works!' }
}).show(); // for the ones that aren't closable and don't fade out there is a .hide() function.
</script>
编辑以在 Header 中显示文件我使用了 wp enque obv
<script type='text/javascript' src='http://fundrasing.davidbuckleyni.co.uk/wp-content/themes/gogreensoccer5/js/bootstrap-notify.js?ver=201202012'></script>
<link rel='stylesheet' id='notifcations-css1-css' href='http://fundrasing.davidbuckleyni.co.uk/wp-content/themes/gogreensoccer5/css/bootstrap-notify.css?ver=1.0' type='text/css' media='all' />
<link rel='stylesheet' id='notifcations-css2-css' href='http://fundrasing.davidbuckleyni.co.uk/wp-content/themes/gogreensoccer5/css/styles/alert-blackgloss.css?ver=1.0' type='text/css' media='all' />
<link rel='stylesheet' id='notifcations-css3-css' href='http://fundrasing.davidbuckleyni.co.uk/wp-content/themes/gogreensoccer5/css/styles/alert-bangtidy.css?ver=1.0' type='text/css' media='all' />
【问题讨论】:
标签: php jquery css twitter-bootstrap