Custom node icons

rehammer

Member
Messages
47
Website
thechatsociety.com
Hello,

I changed my sub-node type to Articles and the custom icon I have no longer shows on the forum list
Screenshot 2022-08-06 122205.png


I'm using the same code as I did with a regular discussion sub-node
Code:
.subNodeLink[href="/forums/requetes.19/"] .fa-comments{
  background-image: url('https://contenu.poissondore.fr/img/icons/41_pipe.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50%;
  font-size: 0;
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: top;
  margin-right: 5px;
}
 

Ehren

Administrator
Staff member
Customer
Messages
5,029
Website
www.xenfocus.com
Hello,

Do you have a URL I can check? You'll just need to change .fa-comments to the correct FA name, I'm just not sure what it is for memory.
 

rehammer

Member
Messages
47
Website
thechatsociety.com
I'm running into an issue where I am trying to have the subnode font awesome icons displayed on the forum page

This is the code I'm using
Code:
.subNodeLink[href$='the-archive.34/'] .fa--xf::before{
    content: "\f187";
}


Screenshot 2022-08-13 194743.png


The icon is not changing though

Also the subnode icon is not changing opacity when read/unread on the forum list
 
Last edited:

rehammer

Member
Messages
47
Website
thechatsociety.com
Hi @rehammer

I've just checked your site however the nodes are using "image icons", not FA icons. Have you fixed this already?
I have a separate style choice that is currently not selectable since I am testing the FA icons

You can now select it from the theme chooser on the site, it's just called 'illuminate'

And also, for my main theme (light/dark version) the subnode icon images are not changing opacity when read/unread like the main node icons
 

Ehren

Administrator
Staff member
Customer
Messages
5,029
Website
www.xenfocus.com
Hello,

This should work:
Less:
.subNodeLink:not(.subNodeLink--unread) .subNodeLink-icon {
  opacity: .5;
}
 
Last edited:

rehammer

Member
Messages
47
Website
thechatsociety.com
Hello,

This should work:
Less:
.subNodeLink .subNodeLink-icon:not(.subNodeLink--unread){
    opacity: .5;
}

Thank you, that worked

Is there a way to also change the subnode icons to font awesome icons, or is that not possible? I have another style option called "illuminate" where I'm testing the font awesome icons
 

rehammer

Member
Messages
47
Website
thechatsociety.com
Hello,

This should work:
Less:
.subNodeLink .subNodeLink-icon:not(.subNodeLink--unread){
    opacity: .5;
}

It looks like this actually just makes the subnode icons faded but does not take into consideration if they have new posts or not

A subforum with new posts still appears faded when it should show the full color
 

Ehren

Administrator
Staff member
Customer
Messages
5,029
Website
www.xenfocus.com
It looks like this actually just makes the subnode icons faded but does not take into consideration if they have new posts or not

Sorry, I updated the code in my earlier post.

Is there a way to also change the subnode icons to font awesome icons, or is that not possible? I have another style option called "illuminate" where I'm testing the font awesome icons

It looks like you've already done this with your Archive icon:

Screen Shot 2022-08-18 at 12.22.26 pm.jpg
 
Top