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

Forum list conditional

Discussion in 'Styling and Customization Questions' started by T3G Silas, Jun 24, 2011.

  1. T3G Silas

    T3G Silas Active Member

    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?

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Which ad template are you using and what format is your advert?
  3. T3G Silas

    T3G Silas Active Member

    The ad is javascript.

    <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 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.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    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%?

Share This Page