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

Forum list conditional

T3G Silas

Active member
#1
I'm trying to make an advertisement on the Forum home be reduced size(Because of the sidebar) then change to full length when on any other page that doesn't have the sidebar.

Is there a variable to only allow something to show on the Forum list?

Thanks.
 

T3G Silas

Active member
#3
ad_above_top_breadcrumb
The ad is javascript.

Code:
<script type="text/javascript">
var pan_widget_width=650;
var pan_widget_height=90;
var pan_border_color="";
var pan_background_color="000000";
var pan_title_color="edff85";
var pan_headline_color="edff85";
var pan_text_color="ffffff";
var pan_link_color="edff85";
var pan_hover_color="ffca84";
</script>
<script type="text/javascript" src="http://widget.****com/pub/adsgen.js"></script>
The only difference is the other code will have a larger width and centered so it doesn't look odd when the sidebar is not on the page.
 

Brogan

XenForo moderator
Staff member
#4
The width of the advert seems to be fixed at 650px.
Is your main content area less than that? That seems very narrow.

Have you tried wrapping it all in a div using a max-width attribute of 100%?