最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Load my Inline js footer area

programmeradmin1浏览0评论

In WordPress we are used a editor that's name muffin builder. It's create dynamic google map script. I just put my Google Api key in this editor and apply it in my home page and its autonomic create a script. when we moved all js files in my footer section all js moved but map js not moved. we want to moved this inline js footer area. please help me to resolved this problem...

In WordPress we are used a editor that's name muffin builder. It's create dynamic google map script. I just put my Google Api key in this editor and apply it in my home page and its autonomic create a script. when we moved all js files in my footer section all js moved but map js not moved. we want to moved this inline js footer area. please help me to resolved this problem...

Share Improve this question asked Apr 26, 2019 at 12:19 Subhodeep BhattacharjeeSubhodeep Bhattacharjee 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

You can enqueue your script in footer

<?php wp_enqueue_script('handle', 'src', 'deps', 'ver', 'in_footer'); ?>

like wp_enqueue_script('jquery','PATH_SCRIPT','','',true);

Setting $in_footer to true

I see references here, please have look https://developer.wordpress/reference/functions/wp_enqueue_script/

发布评论

评论列表(0)

  1. 暂无评论