how can I use a custom CSS (obtained from a bootstrap HTML template) with yii2 framework frontend? (i'm using Yii advanced template)
things i tried and that didn't work:
- adding the path to the custom css file in
frontend\assets\AppAsset.php - replaced the
bootstrap-theme.cssfile underfrontend\web\assets\e4f17951\css\ - modified the
frontend\config\main.phpaccording to this tutorial
EDIT:
following the tutorial , i added this to main-local.php:
'assetManager' => [
'bundles' => [
'yii\bootstrap\BootstrapAsset' => [
'sourcePath' => 'frontend/web',
'css' => ['css/bootstrap.css', 'css/agency.css']
],
],
],
maybe something wrong with sourcePath?
any help will be much appreciated.