Place thread status icons next to topic title


Well-known member
In this thread you can see how a locked thread looks like. On the right side of the thread status bar you can see the little locked icon. My goal is to get rid of the thread status bar and to put those status icons right next to the topic title.


However I have failed yet again in accomplishing html work related to the damn title bar. Any help is greatly appreciated.

Jake Bunce

XenForo moderator
Staff member
Based on:

Here is code for your specific application:

Admin CP -> Appearance -> Templates -> thread_view

Rich (BB code):
<xen:title>{xen:helper threadPrefix, $thread, escaped}{$thread.title}{xen:helper pagenumber, $page}</xen:title>
<xen:h1>{xen:helper threadPrefix, $thread}{$thread.title}</xen:h1>

<xen:if is="!{$thread.discussion_open}">
<xen:container var="$beforeH1"><div style="float: left; margin-right: 5px; margin-top: 6px; width: 16px; height: 16px; background: url('@imagePath/xenforo/xenforo-ui-sprite.png') no-repeat -16px -16px;"></div></xen:container>

	{xen:phrase discussion_in_x_started_by_y_date_z,
		'forum=<a href="{xen:link forums, $forum}">{$forum.title}</a>',
		'name={xen:helper username, $thread}',
		'date=<a href="{xen:link threads, $thread}">{xen:datetime $thread.post_date, html}</a>'}

	<xen:breadcrumb source="$nodeBreadCrumbs" />


Well-known member
Thanks. After some digging yesterday I solved this with a negative margin-top. I wonder what solution is better. All browsers support negative margins, yes?