XF 2.0 How to add custom node on forum list but only with text.

I just want to add the block manually. What I am asking is what html is required to add something like this as last forum.

There's a hacky method to do it. You can use css to remove the node title and use :before or :after to add whatever text you want. I'm not at my computer right now, so I cantgive you an example, but maybe someone can chime in.
 
Add this to extra.less

CSS:
.block--category1 .block-header a,
.node--id1 .node-title a,
.node--id1 .node-icon,
.node--id1 .node-stats,
.node--id1 .node-extra {
    display: none;
}

.node--id1 .node-title::before {
    content: "test";
}

.block--category1 .block-header::before {
    content: "test";
}

Change "1" to the ID of the node and category, respectively, and change "test" to whatever you wan't to display.
 
Last edited:
Add this to extra.less

CSS:
.block--category1 .block-header a,
.node--id1 .node-title a,
.node--id1 .node-icon,
.node--id1 .node-stats,
.node--id1 .node-extra {
    display: none;
}

.node--id1 .node-title::before {
    content: "test";
}

.block--category1 .block-header::before {
    content: "test";
}

Change "1" to the ID of the node and category, respectively, and change "test" to whatever you wan't to display.

Thank you, from what I understand I need to create one category and one forum that is child of it, that I will just replace with this content?
 
Back
Top Bottom