Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Display custom logo as plain text #10350

Open
wants to merge 4 commits into
base: 5.x
Choose a base branch
from

Conversation

daun
Copy link
Contributor

@daun daun commented Jun 21, 2024

Description

Add an option to display the site's name in plain text in the control panel, as suggested in feature idea #1185.

Advantages of doing that

  • Consumes less bandwidth than a logo file
  • Light/dark mode comes along for free
  • Less setup for new projects: just paste in the name

Details

  • When defined, logo image urls take precedence over logo text
  • The logo text goes into a new statamic.cp.custom_logo_text config key
  • Can also be set from a new STATAMIC_CUSTOM_LOGO_TEXT environment variable
  • I guess this can be backported to 4.x without problems
  • As far as I can tell, there's currently no tests for the custom logo behavior, so I haven't added any
  • Manually tested, though :)

Screenshots

Screenshot 2024-06-21 at 13 09 51   Screenshot 2024-06-21 at 13 10 11   Screenshot 2024-06-21 at 13 08 09   Screenshot 2024-06-21 at 13 08 28

Closes statamic/ideas#1185

@daun daun changed the title Display custom logo as plain text [5.x] Display custom logo as plain text Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display custom control panel logo as plain text instead of an image file
1 participant