SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question What Files Do You Expect to See in a Good WordPress Theme?

    This thread was inspired by dgroves' What makes a Good Wordpress Theme? thread, which got me (and a few others, judging by the replies) thinking about what page templates (and other files) people expect to find in a good quality WordPress Theme, such as the archive.php, functions.php, index.php, page.php, search.php, and searchform.php files (though these are not the only ones).

    I personally expect to see the following. I'd love to see what you consider to be "necessary" for a WordPress Theme, and why.

    • style.css
    • 404.php
    • archive.php
    • comments.php
    • footer.php
    • functions.php
    • header.php
    • page.php
    • search.php
    • searchform.php
    • sidebar.php
    • single.php
    I used to use a separate "home" template file, but have since decided to run everything on the home page through the index.php file (with conditionals to keep the home page stuff off of the blog entry pages). What about you?

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    For a standard blog theme the list seems sufficient. If it were a CMS style where the home page is completely different from the rest of the site, having that in its own home.php file will help with customizing.
    Wayne Luke
    ------------


  3. #3
    SitePoint Zealot
    Join Date
    Jun 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The list re completed on normal theme of wordpress. But some theme having more files like Ads.php, or adsense which is more convenice for me.

  4. #4
    SitePoint Wizard ryanhellyer's Avatar
    Join Date
    Oct 2006
    Location
    New Zealand
    Posts
    2,323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What difference does it make?

    Two files are all you need, style.css and index.php and maybe functions.php if you require functionality that needs it.

  5. #5
    SitePoint Enthusiast rendell's Avatar
    Join Date
    Nov 2008
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it depends on your blog needs.
    Like ryan said you only need 2 files to work properly, just like a blogger theme.

  6. #6
    SitePoint Zealot korr's Avatar
    Join Date
    Aug 2008
    Location
    FL
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I always end up writing a custom home page and category pages, but I don't really expect any theme to be ready for my uses when I get it.

    As long as its got all the basics Dan mentioned, its something I can work with. That doesn't mean its ready to go, however!
    Website related links: Websitebuilding.biz, and Bookmarking
    College Stuff: FreeCollegeBlog.com - Financial Aid & Scholarships

  7. #7
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ryanhellyer View Post
    What difference does it make?
    You may only need two files but breaking it up into different files makes it a lot easier for people not fluent in PHP to modify and make work for their site. If he is making a theme for his own use, it is doubtful that he would be asking this question.
    Wayne Luke
    ------------


  8. #8
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Hierophant View Post
    You may only need two files but breaking it up into different files makes it a lot easier for people not fluent in PHP to modify and make work for their site. If he is making a theme for his own use, it is doubtful that he would be asking this question.
    If I knew where you live, I'd send you a box of cookies.


Bookmarks

Posting Permissions

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