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.

[1.0.0 b1] How to identify the root template of a page

Discussion in 'Tips and Guides [Archive]' started by Jake Bunce, Oct 7, 2010.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    View the source code of any xF forum page. Look for the content div at the top of the body. The class of that div tells you the name of the root template for that page.

    For example, on the main forum page you can see this content div in the source code:

    Code:
    <div id="content" class="forum_list">
    
    The root template for the main forum page is forum_list.

    Knowing the root template allows you to find all other templates used on the page. Just edit the root template in your:

    Admin CP -> Appearance -> Templates

    The editor shows all other templates that are included by the root template.

    edit - note that the PAGE_CONTAINER template wraps all pages. That template contains the skeleton with the html, head, and body tags.
     
  2. Tigratrus

    Tigratrus Well-Known Member

    Yay! Jake's doing more Tips and Tricks! :)
     
  3. Peggy

    Peggy Well-Known Member

    Very good, thanks for doing these Jake!
     

Share This Page