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

XF 1.5 Thread_View Sidebar?

Discussion in 'Styling and Customization Questions' started by Huskermax, Jun 30, 2016.

  1. Huskermax

    Huskermax Member

    So this is a screen shot of Thread View page. The top right ad (Wendys logo) is the ad that I have in the ad_sidebar_top template. So if you go to the main Forums page this ad fits nicely after I increased the size of the sidebar container in Style Properties.

    Does the ad code in ad_sidebar_top show up in thread view? If that is the case how do I increase the width?

    Firebug showed me this code:

    .thread_view .sidebar {
    text-align: center;
    width: 360px;
    }

    Tried to add that to extra.css but it did not do anything. Do I need to edit the thread_view temp directly for this?
    threadviewsidebar.png
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    There is no sidebar in the thread view so you would need to edit the template to insert ads there.
     
  3. Huskermax

    Huskermax Member

    Then why is that ad (wendy's) showing up in thread view? That ad code is not in the thread_view temp, it is only in the ad_sidebar_top template
     
  4. Russ

    Russ Well-Known Member

    Refer back to our convo, I gave you special CSS to reduce just the thread view sidebar if you wanted too, you may need to remove that.
     
  5. island

    island Active Member

    Could you please share the CSS to reduce just the sidebar width just on thread_view?
    I'm curious if there is an easy way to have the sidebar be 250 px on forum_list and then reduce it to 160px on thread_view.
     
  6. Huskermax

    Huskermax Member

    Code:
    @media (min-width:@maxResponsiveWideWidth)
    {
       .thread_view .mainContainer
       {
          float: left;
          margin-right: -170px;
          width: 100%;
       }
       .thread_view .mainContent
       {
         margin-right: 170px;
       }
       .thread_view .sidebar
       {
         width: 160px;
         text-align: center;
       }
    }
    Not sure if this will help you with what you want, you would put this in extra.css template.
     
    island likes this.

Share This Page