样式表在加载到我的 WordPress 网站时抛出 404 错误

问题描述 投票:0回答:1

我绝对是 wordpress 的初学者,我正在上 udemy 的课程,使用客户主题从头开始构建 wordpress 网站。 但是我的风格没有应用到我的 wordpress 网站,他们抛出“无法加载资源:服务器响应状态为 404(未找到)” 我有一个用于加载样式的 functions.php 和 enqueue.php 文件 [screenshots for my functions.php and enqueue.php code](https://i.stack.imgur.com/CNATs.png)

我试图解决它,但不能

css wordpress wordpress-theming
1个回答
0
投票

尝试使用这个:

get_theme_file_uri( '/assets/public/index.css' )

© www.soinside.com 2019 - 2024. All rights reserved.