Add an image to node titles on the forum home page

Add an image to node titles on the forum home page

Paul B

XenForo moderator
Staff member
Brogan submitted a new resource:

Add an image to node titles on the forum home page (version 1.0) - Smexy!

This simple bit of CSS will add an image to the forum home page before a node title.

You need to know the node ID for each image; you can find this in the ACP or by using one of the browser inspection tools.

For each node, you will need to add CSS similar to the following to EXTRA.css:

Rich (BB code):
.nodeList .node_32 .nodeTitle:before {
content: url('@imagePath/path/to/image.png');
display: inline;
vertical-align: middle;
padding-right: 4px;
}
The value...

Read more about this resource...
 
I followed the tutorial, and it didn't seem to work for me. I added a pic called 'turntable.png' to my path at "/images/node-pics/turntable.png", applied the code, changed the ID of the forum to the one specified, and it didn't change anything :(. Here's the code I entered in Extra.css:

.nodeList .node_102 .nodeTitle:before {
content: url('@images/node-pic/turntable.png');
display: inline;
vertical-align: middle;
padding-right: 4px;
}

When I hover over the "Music" section of my forums it says www.worldofdiscussions.com/forums/music.102/ .

What did I do wrong :P?
 
Brogan I don't understand what this does. In the scr you give everything looks normal to me.
There's no image on the category bar, and a category is a node.
The forum icons are normal - green for new content grey for nothing new?
The only item that seems different is one forum at the top has a black icon. Is that it? If so wouldn't that be about the sprite?
The other thing is the small picture showing on Teams and Drivers ... that's it?

Also out of curiosity why is a London lad like you displaying y Ddraig Goch as your avatar?
 
Back
Top Bottom