这是为 Genesis 框架创建的示例主题。
GitHub project link: https://github.com/studiopress/genesis-sample/.
Please visit https://my.studiopress.com/help/ for theme support.
The version of Genesis Sample on GitHub includes tooling to check code against WordPress standards. To use it:
composer install to install PHP development dependencies.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.
Scripts are also provided to help with CSS linting, CSS autoprefixing, and creation of pot language files. To use them:
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.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.暂无开放 Issues,或尚未同步最近议题。