• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Center or remove - Forum Title & Thread Tilte [Deleted]

Adam Howard

Well-known member
#1
Adam Howard submitted a new resource:

Center or remove - Forum Title & Thread Tilte (version 1.0) - center the title

Another import from my vBulletin template :)

This small modification will allow you to either center or removed XenForo's default forum title & thread message titles.

To center:

PAGE_CONTAINER

Look for
PHP:
<div class="titleBar">
Change to

PHP:
<div style="text-align:center" class="titleBar">

~ ~ ~ ~
OR
...
Read more about this resource...
 

Adam Howard

Well-known member
#3
nice.. but I think you are forgetting to comment out the close </div> tag.
Not exactly.... The full code is thus

PHP:
 <div class="titleBar">
{xen:raw $beforeH1}
<h1><xen:if
is="{$h1}">{xen:raw $h1}<xen:elseif
is="{$title}" />{xen:raw $title}<xen:else
/>{$xenOptions.boardTitle}</xen:if></h1>
 
<xen:if is="{$pageDescription.content}"><p id="pageDescription" class="muted {$pageDescription.class}">{xen:raw $pageDescription.content}</p></xen:if>
</div>
You really need to only change that 1st line. If you edit the rest, you change a lot more.

I didn't feel the need to include everything else.