Help with file title color please - PDF file title color

What I’m trying to do

I am attempting to set file title font colors based on the file extension.

Things I have tried

I have tried this, but it does not work on my windows machine:

/* Change the font color of PDF file titles in all Obsidian folders */
.nav-folder-title[data-extension=“.pdf”] {
color: #FF00D5 !important;
}

I placed this pdf color.css file in the obsidian subfolder and refreshed snippets and enabled this snippet.

Can anyone explain why this would not apply color to PDF file titles in all obsidian subfolders in the file explorer tree?

Many thanks for considering my request.
-Tim C.

I also tried the following:

/* Change the color of file titles with a .PDF extension inside an Obsidian folder */
.nav-folder-children .nav-file-title[data-extension=“.pdf”] {
color: #FF00D5 !important;
}

I also tried the following:

/* Change the title font color of PDF files in the explorer tree */
.nav-explorer .nav-folder-children .nav-file-title[data-extension=“.pdf”] {
color: #FF00D5 !important;
}

Maybe this could help

Holy Cow! Thank You, Worked Like a Champ.

What is the purpose of [image] in this use-case?

Thanks Again
-Tim C.

Click through to my original post. The [image] is just the forum being silly when previewing other posts.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.