SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2007
    0 Post(s)
    0 Thread(s)

    Required template files to make a theme?

    From my understanding, to create a theme, you will need a minimum of 2 files:

    1. style.css
    2. index.php

    I was wondering..

    If you know how you want your (categories, single post, tags, static, archives) page to appear and you've already created all those files, how would you then write the code for index.php?

    Imagine if you've created a template file for every page (even a custom home page where visitors will land), knowing how you want that page to display, how would you then create the index.php file?

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Melbourne, AU
    448 Post(s)
    8 Thread(s)
    This may not help, but one way to go about it is just to duplicate the Classic Theme in the themes folder and modify what's there as needed. It's worth looking at that folder anyway, as it shows some of the files needed to make up a theme.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    SitePoint Member
    Join Date
    Jun 2010
    0 Post(s)
    0 Thread(s)
    This may not be what you're looking for, but if you do a google search on "blank wordpress themes" you can find the framework to build your own theme.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts