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

Home and Forum-Tabs / how to remove Forum-Tab ?

Discussion in 'XenForo Questions and Support' started by erich37, Oct 7, 2010.

  1. erich37

    erich37 Well-Known Member

    So I have the 2 Tabs "Home" and "Forum" both directing to my homepage at www.domain.com

    How do I get rid of the either one of those 2 Tabs ?

    I would rather want to have my main Tab named "Home" and get rid of the "Forum"-Tab.

    Any way to do this ?
    Should I rather wait with this until XF-stable is out ?

    Many thanks,
  2. MrBrian

    MrBrian Active Member

    In your navigation template, search for;

    <!-- home -->
    <li class="navTab home PopupClosed"><a href="{$homeLink}" class="navLink">{xen:phrase home}</a></li>
    Remove this and you're done. Simple as that :)
  3. erich37

    erich37 Well-Known Member

    will this remove the "Home"-Tab or the "Forum"-Tab ?

    I would like to remove the "Forum"-Tab and have the Main-page with the "Home"-Tab.

    Many thanks,
  4. HoddzDJ

    HoddzDJ Active Member

    That will remove the Home tab, so you will want the one that is directly under that I would expect. I will just login to my admin cp and check that for you and copy the code to this post!!

    After a quick look, it will be easier and simpler to remove the Home link. If you are determined you want to get rid of the Forum one, then I think that could be a little harder!! I am not really supposed to be on here so I can't really look through it properly, but I will later if no-one else has put it up before hand.

    I have had another quick look, and it is possible. I will run through it on this thread a bit later once I am home for you, and it is a simple, find and replace by the look of it!!
  5. HoddzDJ

    HoddzDJ Active Member

    Here's how to remove the Home link, and keep the Forum link from the main navigation...

    Find and remove:
    		<!-- home -->
    		<li class="navTab home PopupClosed"><a href="{$homeLink}" class="navLink">{xen:phrase home}</a></li>
    Then find:
    				<a href="{$tabs.forums.href}" class="navLink">{$tabs.forums.title}</a>
    And replace with:
    				<a href="{$tabs.forums.href}" class="navLink">{xen:phrase home}</a>
    That will get rid of the Home link, and then re-name the Forum one to "Home" (thus, keeping the home one, and getting rid of the forum one) whilst also keeping all of the functionality of the forum link!! It is rather complicated, and with just a glance can confuse you!!
    Hyperion likes this.
  6. erich37

    erich37 Well-Known Member

    do we have any chance to easily get rid of the Forum-Tab in XF-Beta 3 ???

    When running a Forum only (without a page at "Home") it does not look great to have both "Home" and "Forum" showing the same page.
    This is kinda confusing for the user.

    Thanks !
    Jurhum likes this.
  7. DSF

    DSF Well-Known Member

    Simply edit the "navigation" template ;)
  8. dutchbb

    dutchbb Well-Known Member

    It'd be nice if the devs could code it in a way that the home tab is not showed when the homepage field is left empty.
    rickvr, Digital Doctor and erich37 like this.
  9. erich37

    erich37 Well-Known Member

    There are tons of other options available, so I am actually quite surprised that such a crucial (well at least logical) thing is not build in as an option.

    Sorry, but this is strange for me.
  10. Digital Doctor

    Digital Doctor Well-Known Member

  11. rickvr

    rickvr Member

    I like this as well. Why confuse users?
  12. Dean

    Dean Well-Known Member

    I'll merge this thread with the first thread, but not the 2nd thread because that has some votes attached to the first post which would be lost with a merge.
  13. Tigratrus

    Tigratrus Well-Known Member

    Just for the assistance of those that come across this thread later:

    The solution suggested; making the "Home" tab disappear if the Options -> Basic Board Information -> Home Page URL field in the ACP was left blank was implemented. :)
  14. James

    James Well-Known Member

    So is the home tab the only URL that uses the home page URL field? I'd imagine 'Home' on the breadcrumb does too?
  15. Brogan

    Brogan XenForo Moderator Staff Member

    I though the Quick Nav Home link would also be mapped to it but it isn't, it's mapped to the Board URL.

    I think that might be a mistake actually as my Home page URL is /community/pages/home/ yet the Quick Nav Home link goes to /community
  16. James

    James Well-Known Member

    Removing the Home Page URL removes 'Home' from the breadcrumb... handy!
  17. Brogan

    Brogan XenForo Moderator Staff Member

    But not the quick nav....

    Better go and update my bug report :D
    Tigratrus and James like this.
  18. russoroni

    russoroni Active Member

    Is there a way to hide the the little tab icons? i.e I don't want a little house next to the home tab. I'm hoping I could just add a line to extra.css or something like that.
  19. Brogan

    Brogan XenForo Moderator Staff Member

    There are no icons by default.

    You must be using a custom style so try asking in the discussion thread for it.
  20. Donny

    Donny Active Member

    Is there a more cool way to do this now we're in 2015?

Share This Page