admin管理员组文章数量:1431720
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 badge1 Answer
Reset to default 0You 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/
本文标签: pluginsLoad my Inline js footer area
版权声明:本文标题:plugins - Load my Inline js footer area 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745549255a2662854.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论