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

Remove Page Title & Custom Home (Landing Page)

Discussion in 'Styling and Customization Questions' started by zett, Dec 5, 2011.

  1. zett

    zett Member

    Ok basicly I wanna remove the title from a page (or all pages), remove the bread crum,
    change the first tab which is currently the portal (XenPorta) to be the second tab instead and my custom page to be the landing page. Also rename what is currently "Home" to "Portal"
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    How is the "Home" page currently implemented? How was that tab added? For example, if you added the tab through the navigation template then you can edit that template to move it.

    The title and breadcrumbs can probably be removed from that page with CSS. Can you post a URL to that page?

    An addon is required to make the "Home" tab your landing page. I have seen an addon like this but I can't find it. The addon changes the route for the index page.
    zett likes this.
  3. zett

    zett Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Oh OK. That's my addon so I am familiar.

    The two addons are using the same code event to add navigation tabs but XenPorta runs first in the order. You will need to change the execution order of the listeners to fix that. Enable debug mode by adding this line to your library/config.php file:

    $config['debug'] = 1;
    Then edit the XenPorta listener for navigation_tabs:

    Admin CP -> Development -> Code Event Listeners

    Change the Callback Execution Order to 20. The "Nodes As Tabs" addon is 10. So that should make it so your node tabs come first. Note that this change will need to be reapplied whenever you upgrade XenPorta.

    This is an interaction between addons that can't be avoided. I could update the "Nodes As Tabs" addon to force tab position regardless of execution order, but that is no more correct than not.
    MrC, DRE, kankan and 2 others like this.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Looking at the page source, you can hide the breadcrumbs and title by adding this code to the EXTRA.css template:

    .node43 .breadBoxTop,
    .node43 .titleBar
    	display: none;
    zett likes this.
  6. zett

    zett Member

    Oh yeah that did it! Thank you for your help and your awesome addon.
    Now all left to do is renaming the XenPorta tab to "Portal"
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It uses a phrase called "home":

    Admin CP -> Appearance -> Search Phrases

    Title Contains: home
    zett likes this.
  8. zett

    zett Member

    Thanks again!
    Puzzle solved :)

Share This Page