我是wordpress的新手,我想把bootstrap主题转换成wordpress,我不知道这个问题是不是很愚蠢。这是我的函数文件中的代码
<!---This is my functions.php file---->
<?php
add_theme_support('post-thumbnails');
function new2w_theme_styles(){
wp_enqueue_style( 'bootstrap_css', get_template_directory_uri() . '');
我正面临着一个问题。我有自定义模块,我试图通过AppAsset加载CSS和JS,但它不加载。
在我的模块中,我有一个布局文件夹,我试图在其中访问应用程序资产并注册视图,但它没有加载。甚至资产包也显示正在加载assests
告诉我我做错了什么。代码如下
namespace app\assets;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
p