douya2006 2016-03-03 07:58
浏览 39

javascript到wordpress网站?

I have a HTML/CSS form which requires an external Javascript. I have the HTML on my required page with linking code to the javascript. I have a wordpress website and I just put the folder with the javascript in Public_HTML. Is this correct, it is not working for some reason? Code in HTML:

    <script src="csgoboost/js/jquery.js"></script>
    <script src="csgoboost/js/bootstrap.min.js"></script>
    <script src="csgoboost/js/boosting.js"></script>

Thank (I am a bit of a beginner)

  • 写回答

1条回答 默认 最新

  • dongsong4418 2016-03-03 08:06
    关注

    if you are using wordpress then put the js folder in themes folder like

    public_html/wp-content/themes/yourThemeName/js-folder

    and then call the

    <script src="<?php echo get_template_directory_uri();?>/js-folder/file.js"></script>
    
    评论

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?