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

XF 1.1 Hide SubForums on forum index page

Discussion in 'XenForo Questions and Support' started by BamaStangGuy, Jul 28, 2012.

  1. BamaStangGuy

    BamaStangGuy Well-Known Member

    In vBulletin you could tell it to not list subforums on the forumhome. Is there an option for this on xenForo to not have it render the subforums when you load the homepage of the forum?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. BamaStangGuy

    BamaStangGuy Well-Known Member

    Thanks.

    Edit: This still renders all the html associated with sub forums. Is there a better way to do this to make it not render the html at all?
     
    HenrikHansen likes this.
  4. BamaStangGuy

    BamaStangGuy Well-Known Member

    Not sure if you saw my edit so... a bump in case.
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Can you post a link or screenshot?
     
  6. BamaStangGuy

    BamaStangGuy Well-Known Member

    View the source for http://www.cruisingtalk.com/

    You can see that all the html for the subforums show up in the source. Seems like there could be a performance gain on page load there was a way not to render that html at all, since I don't want to show subforums on forum index.

    Screen Shot 2012-07-29 at 1.59.49 PM.png
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Oh that's expected. The CSS hides those subforums on the rendered page such that it doesn't matter that the subforums are in the source code. If you want to remove the HTML then you need to edit this template:

    Admin CP -> Appearance -> Templates -> node_forum_level_2
     
  8. BamaStangGuy

    BamaStangGuy Well-Known Member

    Thanks. I'll do that for a temporary fix. I opened a suggestion for a feature to not make this a template edit (similar to what many vBulletin users are used to).
     
    HenrikHansen likes this.
  9. TouchFish

    TouchFish New Member

    Anyone find a better way to do this, and is node_forum_level_2 for the index page?
     
  10. RoldanLT

    RoldanLT Well-Known Member

    Where is it?
     

Share This Page