Change color and font style of sub forum node titles

Netsultants

Active member
#1
In another forum software program you could include some html bbcode into the title to change color for an individual title.

How do you do it in XF?

When I imported from vb this is what one of the titles looked like:

<strong><b><font color="Black">Want Your Group to

It was truncated because I think the length of the title is too long. Is the char length being extended?
 

Jake Bunce

XenForo moderator
Staff member
#2
HTML in forum titles doesn't work. And the title length is limited to 50 characters.

I came up with some small template changes to do what you want:

Admin CP -> Appearance -> Templates -> node_list.css

Add this code to the template. Change the number 2 to match the node_id of the forum whose title you want to style:

Code:
/*** SPECIAL TITLE STYLING ***/
.nodeTitle2 a,
.nodeTitle2 a:visited
{
	color: #000000;
	font-weight: bold;
}
Admin CP -> Appearance -> Templates -> node_forum_level_2

Replace this:

Code:
<h3 class="nodeTitle"><a href="{xen:link forums, $forum}" data-description="{xen:if @nodeListDescriptionTooltips, '#nodeDescription-{$forum.node_id}'}">{$forum.title}</a></h3>
...with this:

Code:
<h3 class="nodeTitle nodeTitle{$forum.node_id}"><a href="{xen:link forums, $forum}" data-description="{xen:if @nodeListDescriptionTooltips, '#nodeDescription-{$forum.node_id}'}">{$forum.title}</a></h3>
By adding this class reference that uses the node_id you can apply custom styling to any specific forum title by adding another CSS class.

Here the black bold forum title that results:

Screen shot 2010-11-06 at 1.33.01 AM.png
 
Top