[cXF] Node icons with image

[cXF] Node icons with image

BassMan

Well-known member
BassMan submitted a new resource:

[cXF] Node icons with image - DIY tutorial to change default FA node icons with image

Would you like to change your default Font Awesome node icons with image like this?

< read node >
View attachment 213366


< unread node >
View attachment 213367



To change a single node icon with an image add this code to your extra.less template:

Rich (BB code):
/*** Node icons with image **/
.node.node--idX {
    .node-icon i { display: none; }

    &.node--forum {...

Read more about this resource...
 
Currently all node icons are located in the middle of each row. How can I make them vertically at the top? That's at the same level of the forum titles.

mNrHI6.jpg
 
Hello, I can only see a link in the code to one image, how does the read and unread icon work? thanks
Hello,

in the code you can see this part:
Less:
&.node--read .node-icon {
    opacity: 0.4;
}
This part of the code adds opacity to you image you've chosen for a forum node is it is read. For unread the image will show without opacity. To have another image for unread forum you'll need to change it.

Replace opacity: 0.4; with this:
Less:
background-image: url('/images/your_image.png');
background-repeat: no-repeat;
background-position: center;
background-size: contain;

Change the image path to have this image as read forum indicator.
 
Sub Forum How To Make
See this resource for help with subforum node types:
 
Alt forum düğüm türleriyle ilgili yardım için bu kaynağa bakın:
I want to add image not icon
 
Back
Top Bottom