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

Adam Howard

Well-known member
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...
 
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.
 
nice.. but I think you are forgetting to comment out the close </div> tag.
Disregard that 1st comment.... I was looking at it only as changing it to center.

To remove it, you do need to format the rest. .... Sleep.... I need some. LoL

Fixed.
 
Disregard that 1st comment.... I was looking at it only as changing it to center.

To remove it, you do need to format the rest. .... Sleep.... I need some. LoL

Fixed.
lol thats ok... Another easy way to remove it could be this.

Add following code to Extra.css
Code:
.forum_list .titleBar h1 { display: none;}

Note: above will only remove it from index page.
 
Back
Top Bottom