The X-T9 is designed on the premise of full site editing function, and the user can flexibly customize the header, footer, etc. This theme is mainly intended for use on business sites.
npm install
sass watch
npm run watch
dist
npm run dist
@update 1.1.0
Specified from theme.json
| name | default | |
|---|---|---|
| xxs | 0.375rem | Don't fit |
| xs | 0.75rem | For when you want narrower than normal paragraph margins |
| sm | 1.5rem | Block margin / Gap margin |
| md | 2.4rem | Group margin |
| lg | 4rem | Section margin |
| xl | 6rem | Template bottom margin and so on |
- [ Component name / Project name ]--[ attribute ]
- [ Component name / Project name ]__[ element name ]
- [ Component name / Project name ]__[ element name ]--[ attribute ]
背景があると、コアが以下の余白を追加してくる
.has-background {
padding: 1.25em 2.375em;
}
そもそも余白をどれだけつけるかは場所によって異なるし、 場所によってはコアが .has-background に padding を追加しないケースがあるので、余計な混乱を避けるために css で 0 指定しておく。
- ラップした場合グループの上下にpaddingを付与しない。 → グループ解除した場合に消えるのでスペーサーで対応する
360px : 14px -> 1200px : 16px 基準で自動可変
Exclude : readme.txt,readme.md,gulpfile.js
"ref":11229,
src="http://localhost:8888/wp-content/themes/x-t9
src="<?php echo esc_url( get_template_directory_uri() ); ?>
"url":"http://localhost:8888/wp-content/themes/x-t9
"url":"<?php echo esc_url( get_template_directory_uri() ); ?>
url(http://localhost:8888/wp-content/themes/x-t9
url(<?php echo esc_url( get_template_directory_uri() ); ?>
href="http://localhost:8888/information/
href="<?php echo esc_url( get_post_type_archive_link( 'post' ) ); ?>
"moreText":"Read more"
"moreText":"<?php echo esc_html__( 'Read more', 'x-t9' ); ?>"
>Service</
><?php echo esc_html__( 'Service', 'x-t9' ); ?></
>Information</
><?php echo esc_html__( 'Information', 'x-t9' ); ?></
>Read more</
><?php echo esc_html__( 'Read more', 'x-t9' ); ?></
>Main Column</
><?php echo esc_html__( 'Main Column', 'x-t9' ); ?></
>Side Column</
><?php echo esc_html__( 'Side Column', 'x-t9' ); ?></
>Contact</
><?php echo esc_html__( 'Contact', 'x-t9' ); ?></
>Category</
><?php echo esc_html__( 'Category', 'x-t9' ); ?></
>Archive</
><?php echo esc_html__( 'Archive', 'x-t9' ); ?></
>Tag Cloud</
><?php echo esc_html__( 'Tag Cloud', 'x-t9' ); ?></
"Category : "
"<?php echo esc_html__( 'Category : ', 'x-t9' ); ?>"
