This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Brian Fegter ec4c855158 Updated 'comments callback' location comment
The function has been moved outside of 'functions.php' and into 'inc/template-tags.php'. This directs developers to the proper location for the callback.
2013-02-12 10:40:31 -06:00
inc _s: Minor adjustments to Infinite Scroll's implementation. 2013-02-03 02:12:42 -05:00
js Use .text() instead of .html() for site title and tagline when modified via the customizer. Neither setting supports html. 2013-02-07 10:50:34 -08:00
languages Rename translations to languages, see #73 and #50 2012-09-17 12:07:40 +04:00
layouts Layouts were broken by 752d08afd7. This commit fixes the layouts according to the new naming conventions. 2012-09-04 11:34:27 +04:00
404.php Corrected two typos 2012-09-18 11:48:12 +03:00
README.md Remove reference to theme options include in readme.md. 2013-01-27 22:25:31 -06:00
archive.php Escape the return value of get_author_posts_url() with esc_url(). 2013-02-06 20:48:04 -08:00
comments.php Updated 'comments callback' location comment 2013-02-12 10:40:31 -06:00
content-page.php _s: Adding starter styles along with a few markup changes to accomodate them 2012-01-13 20:10:17 +00:00
content-single.php Fix tag list separator i18n in content-single.php 2012-11-13 15:08:42 +09:00
content.php Change .tag-links to .tags-links 2012-10-24 11:06:42 -03:00
footer.php Update the HTML "class" system 2012-08-25 14:06:33 -03:00
functions.php _s: Add basic Infinite Scroll support. Fixes #107. Fixes #105. Props @ethitter. 2013-02-03 02:03:40 -05:00
header.php Merge pull request #113 from sixhours/patch-3 2012-11-28 10:19:42 -08:00
image.php Remove debugging code from image.php 2012-12-31 16:59:42 -08:00
index.php Remove current_user_can() check from index.php. A similar conditional now exists in no-results.php. 2012-10-06 16:27:56 -07:00
license.txt _s: initial fork of Toolbox 2012-01-07 03:25:13 +00:00
no-results.php Escape the return value of admin_url() with esc_url() 2013-02-06 20:43:42 -08:00
page.php Update the HTML "class" system 2012-08-25 14:06:33 -03:00
rtl.css _s: initial fork of Toolbox 2012-01-07 03:25:13 +00:00
screenshot.png _s: Adding a blank screenshot 2012-02-08 20:49:01 +00:00
search.php Update the HTML "class" system 2012-08-25 14:06:33 -03:00
searchform.php Adding current search query to searchform.php 2012-08-14 10:36:37 +04:00
sidebar.php _s: This should have been an li element all along 2012-02-03 19:54:30 +00:00
single.php Update the HTML "class" system 2012-08-25 14:06:33 -03:00
style.css Merge pull request #112 from lukecarbis/patch-1 2013-02-03 00:02:04 -08:00

README.md

_s

Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.

My ultra-minimal CSS might make me look like theme tartare but that means less stuff to get in your way when you're designing your awesome theme. Here are some of the other more interesting things you'll find here:

  • A just right amount of lean, well-commented, modern, HTML5 templates.
  • A helpful 404 template.
  • A sample custom header implementation in inc/custom-header.php that can be activated by uncommenting one line in functions.php and adding the code snippet found the comments of inc/custom-header.php to your header.php template.
  • Custom template tags in inc/template-tags that keep your templates clean and neat and prevent code duplication.
  • Some small tweaks in /inc/tweaks.php that can improve your theming experience. They can be activated by uncommenting one line in functions.php.
  • Keyboard navigation for image attachment templates. The script can be found in js/keyboard-navigation.js. Its enqueued in functions.php.
  • A script at js/small-menu.js that makes your menu a toggled dropdown on small screens (like your phone), ready for CSS artistry. Its enqueued in functions.php.
  • 5 sample CSS layouts in /layouts: Two sidebars on the left, two sidebars on the right, a sidebar on either side of your content, and two-column layouts with sidebars on either side.
  • Smartly organized starter CSS in style.css that will help you to quickly get your design off the ground.
  • The GPL license in license.txt. :) Use it to make something cool.

Getting Started

If you want to keep it simple, head over to http://underscores.me and generate your _s based theme from there. You just input the name of the theme you want to create, click the "Generate" button, and you get your ready-to-awesomize starter theme.

If you want to set things up manually, download _s from github. The first thing you want to do is copy the _s directory and change the name to something else — Like, say, megatherium — then you'll need to do a three-step find and replace on the name in all the templates.

  1. Search for _s inside single quotations to capture the text domain.
  2. Search for _s_ to capture all the function names
  3. Search for _s with a space before it to replace all the occurrences of it in comments. (You'd replace this with the capitalized version of your theme name.)

OR

  • Search for: '_s' & replace with: 'megatherium'
  • Search for: _s_ & replace with: megatherium_
  • Search for:  _s & replace with:  Megatherium

Then, update the stylesheet header in style.css and the links in footer.php with your own information. Next, update or delete this readme.

Now you're ready to go! The next step is easy to say but harder to do: make an awesome WordPress theme. :)

Good luck!