XF 2.2 How to change read and unread node icons?

Floki

Member
I don't want anything fancy like a new icon for each node. I just want to change the read icon to one image, and the unread icon to another image.

This doesn't work:

.node--unread .node-icon {
background-image: url(link) !important;
background-repeat: no-repeat !important;
background-position: center !important;
}
.node--read .node-icon {
background-image: url(link) !important;
background-repeat: no-repeat !important;
background-position: center !important;
}

It wont overwrite whats already there, and for the life of me I cant find out where in the templates the coding for the unread and read icons are. Is there a way to do it myself?
 
I just upgraded to XF 2.3 and now my Read/Unread images for nodes have some other graphic overlaid on them. See below,

messed up node icons.webp

My image is a dark blue helmet for unread and a pale blue helmet for read. Here is the extra-less code I have been using prior to the upgrade (still there after upgrade as well),

custom node image.webp

I cannot figure out how to get ride of the new image so that only the helmet is visible. I don't mind the new image for the subnodes.
 
This code is working for me.

Code:
.node-icon i { display: none; }
.node-icon { background-image: url('/img/node-icon.png'); background-repeat: no-repeat; background-position: center; }
.node--read .node-icon { background-image: url('/img/node-icon-bw.png'); opacity: 0.5; }
 
Back
Top Bottom