duanqiechui2378 2016-05-20 11:54
浏览 62

function.php文件未加载

I decided to try building a theme without using a foundation like underscores etc... I have all the required files

(ss of files),

my functions.php file looks like this:

functions file,

and I am trying to load this file to enqueue all my css:

ss of enqueue-scripts file.

This has worked on other themes I did based off underscores so I assume I am missing some function that perhaps controls the pathing?

Added a message to console.log to see the pages were being loaded and on all of them I do get the message back, so I assume they must be pathing. Is there a way to check or set the get_template_directory_uri?

  • 写回答

2条回答 默认 最新

  • duangang1991 2016-05-20 12:00
    关注

    try this:

    require __DIR__ . "/functions.php"
    
    评论

报告相同问题?

悬赏问题

  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录