Skip to content
This is the sample theme created for the Genesis Framework.
PHP CSS JavaScript
Branch: develop
Clone or download
nickcernis Update 3.2.0 release date
Merge branch 'master' into develop.

Brings in change from #324.
Latest commit 16c6639 Nov 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Release 3.1.0 (#296) Aug 20, 2019
.github/ISSUE_TEMPLATE
.scripts Release 3.1.0 (#296) Aug 20, 2019
config Genesis Sample 3.2.0 (#323) Nov 12, 2019
images Update favicon. Mar 22, 2018
languages Genesis Sample 3.2.0 (#323) Nov 12, 2019
lib Genesis Sample 3.2.0 (#323) Nov 12, 2019
page-templates Genesis Sample 3.2.0 (#323) Nov 12, 2019
.editorconfig Tooling: Add editor config Mar 22, 2018
.eslintignore Remove responsive menus script May 28, 2019
.eslintrc.js Add JavaScript linting using ESLint and WordPress standards Mar 18, 2019
.gitattributes Remove export-ignore lines Apr 1, 2019
.gitignore Release 3.1.0 (#296) Aug 20, 2019
.stylelintrc.json Adjust stylelint rules and coverage Nov 18, 2018
CHANGELOG.md Update release date (#324) Nov 13, 2019
CONTRIBUTING.md Add contributing guidelines Mar 18, 2019
README.md Add `composer phpcbf` command and document Jun 14, 2019
composer.json Add `composer phpcbf` command and document Jun 14, 2019
functions.php Release 3.1.0 (#296) Aug 20, 2019
package-lock.json Genesis Sample 3.2.0 (#323) Nov 12, 2019
package.json Genesis Sample 3.2.0 (#323) Nov 12, 2019
phpcs.xml.dist Genesis Sample 3.2.0 (#323) Nov 12, 2019
screenshot.png Release 3.1.0 (#296) Aug 20, 2019
style.css Genesis Sample 3.2.0 (#323) Nov 12, 2019

README.md

Genesis Sample Theme

GitHub project link: https://github.com/studiopress/genesis-sample/.

Installation Instructions

  1. Upload the Genesis Sample theme folder via FTP to your wp-content/themes/ directory. (The Genesis parent theme needs to be in the wp-content/themes/ directory as well.)
  2. Go to your WordPress dashboard and select Appearance.
  3. Activate the Genesis Sample theme.
  4. Inside your WordPress dashboard, go to Genesis > Theme Settings and configure them to your liking.

Theme Support

Please visit https://my.studiopress.com/help/ for theme support.

For Developers

The version of Genesis Sample on GitHub includes tooling to check code against WordPress standards. To use it:

  1. Install Composer globally on your development machine. See Composer setup steps.
  2. In the command line, change directory to the Genesis Sample folder.
  3. Type the command composer install to install PHP development dependencies.
  4. Type composer phpcs to run coding standards checks.

You'll see output highlighting issues with PHP files that do not conform to Genesis Sample coding standards.

Run composer phpcbf if you see “phpcbf can fix the x marked sniff violations automatically” in the output of composer phpcs.

npm scripts

Scripts are also provided to help with CSS linting, CSS autoprefixing, and creation of pot language files. To use them:

  1. Install Node.js, which also gives you the Node Package Manager (npm).
  2. In the command line, change directory to the Genesis Sample folder.
  3. Type the command npm install to install dependencies.

You can then type any of these commands:

  • npm run autoprefixer to add and remove vendor prefixes in style.css.
  • npm run makepot to regenerate the languages/genesis-sample.pot file.
  • npm run lint:css to generate a report of style violations for style.css.
  • npm run lint:js to generate a report of style violations for JavaScript files.
  • npm run fix:js to fix any JavaScript style violations that can be corrected automatically.
  • npm run zip to create a genesis-sample.zip. Files in the excludes array in scripts/makezip.js are omitted.

Packaging for distribution

  1. Follow the install instructions for npm scripts above.
  2. Switch to the git branch you plan to distribute.
  3. Bump version numbers manually and commit those changes.
  4. Type npm run zip to create genesis-sample.zip. Files in the excludes array in scripts/makezip.js are omitted from the zip. filename.md files will be renamed to filename.txt.
You can’t perform that action at this time.