1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

How to create a Page without a title

Discussion in 'Tips and Guides [Archive]' started by Brogan, Nov 21, 2010.

  1. Brogan

    Brogan XenForo Moderator Staff Member

    If, like me, you want to use a Page as a (temporary) Home page, you will notice that the Page title is displayed at the top in H1 text, like so:


    This is obviously undesirable as you only want content to be displayed.

    You can't create a Page without a title so how can you remove it from just that one Page without editing the template?

    Easy. You just edit the xf_node table and change the title field to a single space. Don't leave the field blank as the board title will be used instead of the Page title in that case.
    Setting the title to a space results in this:


    If you do this, it's important that you uncheck "Display in the node list" in ACP -> Applications -> Node Tree, otherwise you'll end up with a phantom page icon on forum home:

    Trombones13 likes this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    An alternative (and better) suggestion from Mike is to add this to the template HTML for the Page:
    That has the same effect but it doesn't affect the page title in forum home so it can still be displayed as a normal node.
    ArnyVee and Trombones13 like this.
  3. ArnyVee

    ArnyVee Well-Known Member

    Brogan, is there a way to have the 'description' still show but not the title? This would allow for images or html to display and I can create a little mini-navigation menu. Is this possible?
  4. ragtek

    ragtek Guest

    Have you tried to add
    <xen:title></xen:title> to the template?
  5. ArnyVee

    ArnyVee Well-Known Member

    Yes, by doing that it still allows the title to display along with the description.

Share This Page