plugins - Load my Inline js footer area

In WordPress we are used a editor that's name muffin builder. It's create dynamic google map script. I just pu

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/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745549256a4632488.html

相关推荐

  • plugins - Load my Inline js footer area

    In WordPress we are used a editor that's name muffin builder. It's create dynamic google map script. I just pu

    18小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信