![](/img/trans.png)
[英]Ekko-Lightbox stop working after converting HTML template into wordpress
[英]Javascript Stop Working when converting website to Wordpress
我已完成將http://www.cobalt-chromium-toxicity.com/創建為靜態html / css網站,並試圖將其轉換為Wordpress。 我丟失了表單上的驗證功能以及底部的隱藏/顯示視頻功能。
在網站的Wordpress版本中,我有
<script type="text/javascript" src="
<?php bloginfo('template_directory'); ?>/js/jquery.validate.js">
</script>
<script type="text/javascript" src="
<?php bloginfo('template_directory'); ?>/js/videos.js">
</script>
在上方的header.php中
<?php wp_head(); ?>
</head>
我認為"echo get_template_directory_uri();"
而不是"bloginfo('template_directory');"
將為您工作。
我認為您在php代碼中缺少回顯 ,例如:
<?php echo bloginfo('template_directory'); ?>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.