_strap is a WordPress theme with the goal of integrating Twitter's bootstrap into Automattic's _s with the smallest possible changeset.
CSS PHP JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 93 commits ahead, 171 commits behind Automattic:master.
Latest commit a4469ec Nov 22, 2015 @ptbello Updated to _s latest (commit 53e6f84)
Merge branch 'master' of git://github.com/Automattic/_s into develop

Conflicts:
	header.php
	style.css
Permalink
Failed to load latest commit information.
bootstrap Update to Bootstrap 3.3.5 Jun 22, 2015
inc Updated to _s latest (commit 53e6f84) Nov 22, 2015
js Updated to _s latest (commit 53e6f84) Nov 22, 2015
languages Updated to _s latest (commit 53e6f84) Nov 22, 2015
layouts Updated to _s latest (commit 53e6f84) Nov 22, 2015
sass Merge pull request #680 from iandunn/clearfix-max-width Nov 11, 2015
template-parts Remove redundant empty new lines at the end of some files Nov 18, 2015
.travis.yml Update Travis CI Build Matrix now that WordPress 4.2 has been released. Apr 29, 2015
404.php Updated documentation in comments at the top of files. Jul 12, 2015
CONTRIBUTING.md Update contributor docs Sep 16, 2015
README.md Added italian translation Feb 24, 2014
archive.php Updated documentation in comments at the top of files. Jul 12, 2015
codesniffer.ruleset.xml Add whitespace rule exclusion into build checks. See #737. Apr 24, 2015
comments.php Update comparisons to resolve the strict comparison warnings. See Aut… Aug 7, 2015
footer.php Merge pull request #781 from PJ-Finlay/add-documentation-in-comments Aug 3, 2015
functions.php Updated to _s latest (commit 53e6f84) Nov 22, 2015
header.php Updated to _s latest (commit 53e6f84) Nov 22, 2015
index.php Merge pull request #781 from PJ-Finlay/add-documentation-in-comments Aug 3, 2015
page.php Updated documentation in comments at the top of files. Jul 12, 2015
rtl.css _s: initial fork of Toolbox Jan 7, 2012
screenshot.png New 1200x900px screenshot, compressed Apr 3, 2015
search.php Updated documentation in comments at the top of files. Jul 12, 2015
searchform.php Bootstrap 3 search form Feb 23, 2014
sidebar.php Updated documentation in comments at the top of files. Jul 12, 2015
single.php Updated documentation in comments at the top of files. Jul 12, 2015
style.css Update to Bootstrap 3.3.5 Jun 22, 2015
style.less Update to Bootstrap 3.3.5 Jun 22, 2015

README.md

_strap

_strap is a starter theme for WordPress. It has the goal of integrating Twitter's bootstrap (https://github.com/twitter/bootstrap) into Automattic's _s (https://github.com/Automattic/_s) with the smallest possible changeset.

_strap works with Bootstrap 3️⃣
the Bootstrap 2️⃣ version is still available at its own branch

Like its big brother _s, _strap is not intended as Parent theme, rather as starting point to build a custom theme from scratch. This means you will have to replace all internal references to _s with your new theme's name. No worries, you don't have to do it by hand: _strap includes an automatic process - just follow the instructions below.

Installation

  1. Download the .zip
  2. Unpack it to your /wp-content/themes directory.
  3. Log in to your WordPress backend and activate it
  4. You will notice a new "Build theme" item in the Appearence section of the admin menu - go there
  5. Choose the name and slug of your new _strap-based, custom theme; when you submit the form, _strap will be cloned to /wp-content/themes/, in a new folder named after your theme's slug.
  6. That's it. Unless you plan on starting your theme from scratch over an over, like you had some kind of compulsive writer's block, you can now delete /wp-content/themes/_strap all together and start working on your brand new theme.

What you get

No bloat, just the bare minimum to make _s work with Bootstrap; most of it you'll find in /inc/functions-strap-php

  • a filter and a custom walker to turn a wp_nav_menu() into a Bootstrap navbar
  • filters for captioned images and oembeds
  • Bootstrap styled comment and search forms
  • Bootstrap responsive grid semantically applied to the original _s markup

What you put

  • You can customize the original Bootstrap LESS files - in particular /bootstrap/less/variables.less
  • You should add your custom styles at the end of /style.less and/or in extra .less files you should then @import in /style.less
  • After changes you should compile /style.less to /style.css
  • Of course you should edit any of the actual theme .php files as you see fit, exactly like you would do with ant other starter theme; if you alter the markup structure of the theme, i.e. create a different grid, you should use either use the orginal Bootsrap classes or the mixins Bootstrap provides to attach the same behaviour to any element.

Translations

Have you translated _strap into another language? Submit a pull request now!

Made with _strap

Here are some live websites using themes made with _strap
Made something with _strap? Submit a pull request with your screenshot to the _strap_made branch


http://clubtoclub.it
Design by Boumaka. Code by @ptbello, @alevals

clucbtoclub.it


http://arenadiverona100x100.com
Design by Boumaka. Code by @ptbello, @alevals

arenadiverona100x100.com


http://www.spaziocar.it/
Design by Boumaka. Code by @ptbello

spaziocar.it