mombro
January 3, 2025, 6:36pm
1
Hi all,
I’m a bit lost with this easy question: how do I hide the header of an entity-card?
I have this code, and it won’t even change the text color to red:
type: entity
entity: sensor.wastecollection
grid_options:
columns: 12
rows: 2
card_mod:
style: |
.card-header {
color: red;
}
Chat GPT says it should be easy with this and display: none
, but it didn’t work at all.
I get correct results with this:
card_mod:
style: |
ha-card {
--ha-card-background: yellow;
color: var(--primary-color);
}
So I know card-mod is installed and works properly
What am I missing?
mombro:
Chat GPT says
mombro:
What am I missing?
A proper place to ask.
Better than trying to apply a code
mombro:
.card-header {
from a different card.
mombro
January 3, 2025, 8:07pm
3
Hm, ok, I didn’t know I was supposed to ask in the original thread of that addon. Is that common in this forum?
There are no strict rules.
Posting in a dedicated thread will less clutter the forum, all solutions will be in 1 place, you will attract more experienced users. (besides, the 1st post from the main card-mod thread may be useful…)
1 Like
mombro
January 3, 2025, 8:25pm
5
Ohhhh, I seeeee! Thank you man, that was helpful. It links to your posts, and they show the immediate solution
1 Like
mombro
January 4, 2025, 8:05pm
7
It worked like this:
card_mod:
style: |
.name{
display: none;
}
Add some padding/margin for a remained part…
mombro
January 4, 2025, 8:13pm
9
I don’t know what you mean
OK, then leave it if the look is OK))
1 Like