DobsonDev Underscores Generator
June 17, 2016



Way back when I created a modified version of the Underscores starter theme with Foundation mixed in that I brilliantly named DobsonDev Underscores – very creative naming. Originally there were just two shell scripts that would run to create a customized starter theme. These shell scripts would basically go through the project and change the folder, slug and theme name throughout the files.

Even though the scripts worked really well (and were extremely fast when installed on a server), I always wanted to have a web interface like they did on underscores.me which grabbed the latest version of the project from GitHub and did all the theme name, slug and folder name switching right there on the website. What you got after all that was a zip ready to use with your customized starter theme.

DobsonDev-Underscores

I’m very happy and proud to say that with the help of my good friend I’ve been able to create the same type of online generator for my starter theme. You can go check it out now at underscores.dobsondev.com and create a starter theme for yourself right now.

Below you can see the README from the project which will go over all the important things about it:


DobsonDev Underscores Generator

These are all the files that run underscores.dobsondev.com. This website allows you to create your own version of DobsonDev Underscores which is a starter WordPress theme based on on Underscores with Foundation hooked in.

About DobsonDev Underscores

This starting WordPress theme is based on Underscores with Foundation hooked in for an extremely well rounded front-end framework. The DobsonDev Underscores Generator now allows you to generate your own starter theme simply by filling out a form on underscores.dobsondev.com.

How to Use

The DobsonDev Underscores Generator is extremely easy to use. All you have to do is fill out the form on the generator page at underscores.dobsondev.com. Once you do that you'll be given a download containg a zip of your new starter theme.

This theme is extremely bare bones, but it's meant to be that way. The idea is that it provides an amazing starting place that you can then easily expand to suit your or your client needs. I use this theme when creating new websites for my clients because I would rather not write a theme from scratch every single time.

Installing for Yourself

If you want to install the DobsonDev Underscores Generator on your own webserver you are more than welcome to do so! You can even use it to modify a theme you've already create if you want to do through the code.

All you have to do to install the generator on your webserver is copy all of the files to your webspace, and then change the owner of the temp folder to apache. You use the following command to do so:

chown apache:apache temp/

There shouldn't be any files in there when you first download it so you don't have to recursively change the ownership.

Using your own Theme

If you've created your own starter theme for WordPress, you can definitely change the code around to work with it. All you need to do is change the following line:

file_put_contents( 'temp/master.zip', file_get_contents( 'https://github.com/SufferMyJoy/dobsondev-underscores/archive/master.zip' ) );

You have to change the path to my GitHub project for DobsonDev Underscores to your own path. I would highly recommend still using GitHub to host your starter theme so allyou really need to change is the end of the URL and add your own username and project path. Also that code is on line 32 in index.php.

I would really recommend everyone try to make their own starting theme. I thought Underscores was great but it would be even better with Foundation hooked in, so I made my own version with exactly that. Ever since then I've slowly been modifying the code to make it perfectly suited to me as a developer.

If you make your own starting theme you can have the exact same tailor-made starting theme at your disposal.

Contributing

I would like to especially thank Evan Ahlberg for his contributions to this project. He coded the original verion of the DobsonDev Underscores Generator and I just modified his code to get it to where it is now.

I'll accept any pull requests that seem useful or fix bugs present (especially if there is a better way to do the shell scripts). You should fork the main repo, create a feature branch, write your changes/fix some bugs and submit a pull request. I'll review the pull request and if it seems like a good change I'll test it out myself and then merge it in.

License

DobsonDev Underscores Generator is licensed under the MIT License. Please see LICENSE for details.


I’m really happy with how the DobsonDev Underscores theme has come along so far – but I plan to make a lot of improvements over the next little while. Some of the things at the top of my list are:

  • clean up the CSS in style.css to include pretty much just WordPress related style and let foundation do most of the work for everything else
  • add documentation to explain how the theme is generally laid out and the rationale behind everything so that others can understand how to use the theme as easily as I do
  • add a bunch of code examples for things like drop down menus so they can be easily referenced
  • create a solid responsive menu CSS that will look great right out of the gate
  • eventually I would like to create a theme options framework so things such as logos can be loaded from the WordPress backend – this way themes made with DobsonDev Underscores could become a lot more versatile and possibly even be sold on marketplaces such as themeforest

The theme options framework might still be a ways off yet but I think this gives a good example of some of things you can look forward to out of DobsonDev Underscores. I feel that the generator website will allow me to easily update the theme in a way that wasn’t possible before, and I’m looking forward to making the theme the best it can be as time goes on.

As always thank you for reading and please share DobsonDev Underscores around as much as you can! Please feel free to put any suggestions or ideas for the theme in the comments section below, and please try the theme out for yourself!


Comments