我完成了创建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代码中缺少了echo,比如:
<?php echo bloginfo('template_directory'); ?>