我正在学习wp主题开发教程,但不知怎么的,我的wp_enqueue_style和wp_enqueue_script在这里不起作用是我的代码。
functions.php
我在header.php中增加了head,在footer.php中增加了body
这是我的style.css
/*
Theme Name:GTCoding
Author:Godson Thomas
Author URI:www.google.com
Description:Test theme
Version:1.0
*/
body{
background:red;
}js/main.js
alert ("hello from main.js");header.php
GTCoding
Header herefooter.php
Footer was hereindex.php
Hi from index.php我被days..please的帮助困住了,我搜索了论坛,但我想我的问题是specific..please不要标记这个副本
发布于 2020-04-26 04:46:03
您的操作是wp_enqueue_script而不是wp_enqueue_scripts。这应该能解决问题。让我知道它是如何进行的!
https://wordpress.stackexchange.com/questions/365068
复制相似问题