get_footer();和谷歌地图冲突

时间:2016-11-11 03:00:52

标签: javascript wordpress

我的网站没有显示Google地图。控制台说我多次包含API而且我没有。 之后,我决定删除所有的JavaScript并使用谷歌地图插件,我仍然有同样的错误。

我怀疑它必须调用get_footer();函数,因为如果我从footer.php删除>?,地图会显示但我丢失了标题上的视频和我为导航创建的动画。

这是我的footer.php的代码

        </footer>

       <!-- Map -->


        <!-- Bootstrap JavaScript -->
        <script src="<?php bloginfo('template_directory');?>/assets/js/jquery.js"></script>
        <script src="<?php bloginfo('template_directory');?>/assets/js/bootstrap.min.js"></script>

        <!-- Bx Slider JS -->
        <script src="<?php bloginfo('template_directory');?>/assets/js/jquery.bxslider.min.js"></script>

        <!-- Add JS counter lib -->
        <script src="<?php bloginfo('template_directory');?>/assets/js/jquery.waypoints.min.js"></script>
        <script src="<?php bloginfo('template_directory');?>/assets/js/jquery.counterup.min.js"></script>

        <!-- Add wow js lib -->
        <script src="<?php bloginfo('template_directory');?>/assets/js/wow.min.js"></script>

        <!-- Custom Js -->
        <script src="<?php bloginfo('template_directory');?>/assets/js/custom.js"></script>
<?php wp_footer(); >?
</body>
</html>

和page-home.php

    </section>
        <aside class="clients">
            <div class="container">
                <div class="row">
                    <div class="col-md-4 col-sm-4">
                        <a href="https://shucksfishhouse.com" target="_blank">
                            <img src="<?php bloginfo('stylesheet_directory');?>/assets/images/shucks.jpg" class="img-responsive img-centered" alt="">
                        </a>
                    </div>
                    <div class="col-md-4 col-sm-4">
                        <a href="https://www.absolutelyfresh.com/" target="_blank">
                            <img src="<?php bloginfo('stylesheet_directory');?>/assets/images/abs.jpg" class="img-responsive img-centered" alt="">
                        </a>
                    </div>
                    <div class="col-md-4 col-sm-4">
                        <a href="https://baileysbreakfast.com/" target="_blank">
                            <img src="<?php bloginfo('stylesheet_directory');?>/assets/images/baileys.jpg" class="img-responsive img-centered" alt="">
                        </a>
                    </div>

                </div>
            </div>
        </aside>    
<?php get_footer();

以下是网站:http://dundeedell.com/

0 个答案:

没有答案