Forums

[resolved] Custom theme creation template files (3 posts)

  1. magicalwonders
    Member
    Posted 3 years ago #

    Hello Folks,

    I've been searching out tutorials on making a custom WordPress theme, and studying the Default theme at the same time.

    Outside of the main files, index.php, header.php, sidebar.php and footer.php, none of the tutorials mention the other files such as page.php, single.php, archive.php etc.,

    Although I can see what these template files do, I can't see how they are referenced anywhere in the main files! Does WordPress automatically use these templates if they are present in the theme?

    Hope someone can advise,

    Many thanks,

    Myles

  2. stvwlf
    Member
    Posted 3 years ago #

    Hi

    The answer is that different template files are used at different places in the process of assembling pages

    This page should explain what you are looking for.
    http://codex.wordpress.org/Template_Hierarchy

  3. magicalwonders
    Member
    Posted 3 years ago #

    Hi,

    Thanks for the link. Much appreciated.

    Myles

Topic Closed

This topic has been closed to new replies.

About this Topic