F
Filament5mo ago
djh75_

Customize or override default behavior of page title

Filament generates page titles in the format of [Page Title] - [APP_NAME]. However, I would like to change the last part of the title to something other than the APP_NAME. I've found solutions for changing the part before the dash, but I haven't been able to find a way to customize or override the part after the dash. Is there a way to achieve this in Filament?
Solution:
The title is made up from the page title and the brand name: ```html <title> {{ filled($title = strip_tags(($livewire ?? null)?->getTitle() ?? '')) ? "{$title} - " : null }} {{ strip_tags(filament()->getBrandName()) }}...
Jump to solution
1 Reply
Solution
Dennis Koch
Dennis Koch5mo ago
The title is made up from the page title and the brand name:
<title>
{{ filled($title = strip_tags(($livewire ?? null)?->getTitle() ?? '')) ? "{$title} - " : null }}
{{ strip_tags(filament()->getBrandName()) }}
</title>
<title>
{{ filled($title = strip_tags(($livewire ?? null)?->getTitle() ?? '')) ? "{$title} - " : null }}
{{ strip_tags(filament()->getBrandName()) }}
</title>
So you can just define a different ->brandName() on the Panel
Want results from more Discord servers?
Add your server