Follow me at Twitter Arras Theme 1.4.1 is now live! http://bit.ly/CZsXx 1 day ago

Getting Started on the Buffet Framework – Part 1

In this tutorial, I will be showing you how to start developing a child theme based on the Buffet Framework. You’ll need:

  • Text editor (Notepad will do, but you might want to use code editors like Notepad++)
  • Local web development server (I highly recommend you do it on a local web server before using it on a production server. XAMPP or WAMP will do)
  • FTP client (If you want to upload files to your web server. FileZilla would be a good choice for me)

The CSS Stylesheet

Like all child themes, the first thing you will need to do is to create a folder in /wp-content/themes/ and name it as you wish. Next, you will need to create a file called style.css inside the folder you have just created.

You will need to add the following codes into the file:

/*
Theme Name: Theme Name
Theme URI: http://www.zy.sg/
Description: Child Theme of the Buffet Framework
Version: 1.0
Author: Me, myself and I
Author URI: http://www.zy.sg/
Template: the-buffet-framework
*/

You can edit any of the theme information here, except for the Template line. It tells WordPress that you are using the template files from that folder as the parent.

Once that is done, you can import in the framework CSS files. For example, I can import the Blueprint CSS stylesheets which are bundled with the framework. To do it, you will need to add the following lines:

/* Import Blueprint CSS styles */
@import url('../the-buffet-framework/css/blueprint/reset.css');
@import url('../the-buffet-framework/css/blueprint/typography.css');
@import url('../the-buffet-framework/css/blueprint/forms.css');

The framework comes bundled with the layout stylesheets from Thematic. So for example, I would like my basic layout to be a 2 column layout, with the sidebar to the right:

/* Import custom layouts (located at /css/layouts/) */
@import url('../the-buffet-framework/css/layouts/2c-r-fixed.css');

Once you are done, you can continue to style the theme to the way you would like it. You can also copy over all the styles from the default stylesheet at /wp-content/themes/the-buffet-framework/style.css and edit from there.

You can view and activate the theme from the Themes page over at the WordPress admin panel if you have done it correctly.

You can basically stop here right now, but if you need to add and edit content to the existing child theme, you will need to use the theme hooks to do it. I will cover this on the second part of the tutorial.

11 Comments
  1. Derek S says:

    I really love this framework, are you ever going to do a second tutorial?

    Reply
    • zy says:

      I’m still in the process of writing one right now, it should be up within a day or two.

      Reply
      • Derek S says:

        I am ecstatic! I love this framework, and your PHP Profiler plugin, keep up the good work! Put up a Tipjoy donate button or something and I might be generous…

        Reply
  2. Derek S says:

    Can’t wait for your post about the theme hooks….

    Reply
    • zy says:

      I’m really sorry for not posting a tutorial on the theme. I’ve been working hard on a new major version which had a lot of changes to the API.

      Reply
  3. Derek S says:

    Fair Enough

    Reply
  4. Dom says:

    Hi there,

    Am I missing something? I have downloaded the Buffet theme but there are no controls in the layout/design pages of the Theme Controls. Is there another download I need?

    Thanks

    Dom

    Reply
  5. Did I understand correctly that there isn’t a part 2 for this tutorial because a new version of the framework is coming out instead?

    If so, do you have a release date in mind?

    I’m trying to decide on a framework to use for a current project.

    Reply
  6. I love the the premise of your framework. It’s pretty well constructed. I was putting together something similar based on the 960.gs . When I saw that you included it in your package I was quite happy. That being said, I’m a bit perplexed as to how 960 could be fully leveraged in a child theme (structurally),

    Reply
  7. Cool framework for me to create some cool themes out of. I will put my CSS skills a little run now so that I can make some themes out of this and share as well :)

    Reply
Trackbacks / Pings
Leave a Reply




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting