Skip to content
Discussion options

You must be logged in to vote

Hey @blondie63

Usually, we change the logo inside config/backpack/ui.php.

To change the logo via the client-side color mode switcher, I tried it this way:

  1. Copy the switch_theme.blade.php file to override.
# create the custom directory if it's not already there
mkdir -p resources/views/vendor/backpack/theme-tabler

# copy the blade file inside the folder we created above
cp -i vendor/backpack/theme-tabler/resources/views/layouts/partials/switch_theme.blade.php resources/views/vendor/backpack/theme-tabler/layouts/partials/switch_theme.blade.php
  1. Add the following script at the end of the file.
@foreach(backpack_theme_config('options.colorModes') as $mode => $icon)
@php
    $description …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blondie63
Comment options

Answer selected by blondie63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants