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

XF 1.1 Override User Style Choice for Forum Home

DBA

Well-known member
#1
How would I go about forcing a certain style to the forum homepage, for all users? Did I miss an option somewhere or will this have to be custom?
 

Jake Bunce

XenForo moderator
Staff member
#2
There isn't a direct option for this.

What about your style do you want to change on the index page? There might be a template condition you can use.
 

DBA

Well-known member
#3
There isn't a direct option for this.

What about your style do you want to change on the index page? There might be a template condition you can use.
Page fixed width for the forum home and category pages.

Ok here's what I did, hopefully there's a better way. lol

Added this to the PAGE_CONTAINER template
Code:
<xen:if is="in_array({$contentTemplate}, array('forum_list', 'category_view'))">
<xen:require css="dba_fixed.css" />
</xen:if>
and put this in the dba_fixed.css template
Code:
.pageWidth {
width: 990px !important;
margin: 0 auto !important;
}