WordPress.org

Ready to get started?Download WordPress

Forums

Convert child theme to a stand-alone theme (5 posts)

  1. billbennett
    Member
    Posted 2 years ago #

    I've built my own child theme based on Twenty Eleven. I'm sure it's possible to take this code and change it into a more efficient standalone theme. Where would I get started? Is there a standard recipe for doing this?

  2. mrwweb
    Member
    Posted 2 years ago #

    As far as I understand it, there aren't any meaningful performance issues caused by child themes. What's the reason you would want to do this?

  3. billbennett
    Member
    Posted 2 years ago #

    Two reasons.

    First, my child theme - currently on my site at http://billbennett.co.nz is massively minimal. I don't think I'm seeing the performance benefits of this because the parent twentyeleven theme includes tons of php and css that doesn't get used. I checked this by benchmarking speeds of the current theme versus a basic, old-school WordPress theme.

    Second, I want to package it up for redistribution. Sure, I know I can do this with a child theme, especially when the parent is the standard theme, but it would be cleaner as a standalone.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    the parent twentyeleven theme includes tons of php and css that doesn't get used.

    It all gets used.

  5. mrwweb
    Member
    Posted 2 years ago #

    esmi is right on. It would be very dangerous to try to strip out any parts of Twenty Eleven, particularly for redistribution. Twenty Eleven can handle a lot of use-cases, and I don't think you'd want make the theme less flexible.

    With that said, if you really do want to change things, I would rebuild the theme on something lighter weight.

    I like the HTML5 Reset WordPress theme and you might particularly be interested in starkers.

    Like I said earlier, if you want to package for redistribution, you'll need to consider other ways the theme might be used. Make sure to use the Theme Unit Test.

Topic Closed

This topic has been closed to new replies.

About this Topic