Can't create a custom theme - what am I doing wrong? (V6) #786
Replies: 2 comments 1 reply
-
Hello @emogeekface I followed step by step the tutorial and is working perfectly. Make sure in config/backpack/ui.php you set "view_namespace" (end dot is very important):
you create a folder with the name of your theme in "resources/views/theme-sos", inside this folder you add the files like this: ![]() Finally, you set resources/views/theme-sos/inc/theme_styles.blade.php:
And resources/views/theme-sos/inc/theme_scripts.blade.php:
Thats all, from here you can customize anything you need to your theme. Cheers. |
Beta Was this translation helpful? Give feedback.
-
Hello @emogeekface Due to no activity I will close this issue, but if you need to continue you can reopen it or if it is a new issue, you can create a new issue. Cheers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've followed the documentation for creating a custom theme here: https://backpackforlaravel.com/docs/6.x/add-ons-tutorial-how-to-create-a-theme however, no matter what I do, it doesn't seem to be picking up my custom code and I'm wondering if I'm doing something wrong or if I need to run any commands to pick up the new code?
I have created a folder called
theme-sos
in myresources/views
folder, and have set myconfig/backpack/ui.php
file to haveI have then copied various files from the coreuiv2 files into my
theme-sos
folder and changed different bits but nothing is being taken through to my site.Things I have tried:
view_namespace
totheme-sos
view_namespace
totheme-sos::
theme-sos
folder intoresources/views/vendor/backpack
and changingview_namespace
tobackpack.theme-sos::
theme-sos
folder intoresources/views/vendor/backpack/ui
and changingview_namespace
tobackpack.theme-sos::
theme-sos
folder intoresources/views/vendor/backpack/themes
and changingview_namespace
tobackpack.theme-sos::
npm run dev
after each changeartisan config:cache
after each changeNothing seems to work - what am I doing wrong?!
Beta Was this translation helpful? Give feedback.
All reactions