A WordPress plugin to create block themes https://wordpress.org/plugins/create-block-theme/
Find a file
Matias Benedetto 3a47efe605
Merge pull request #116 from WordPress/123-version-bump
1.2.0 Version bump and readme.txt update
2022-10-03 15:43:42 -03:00
.github/workflows Update deploy-to-dotorg.yml 2022-07-27 09:48:48 -04:00
admin Merge pull request #112 from jonathanbossenger/111-generate-button 2022-10-03 14:50:50 +01:00
assets Embed Google fonts in theme 2022-09-23 10:20:05 -03:00
css Embed Google fonts in theme 2022-09-23 10:20:05 -03:00
includes Adding the ability to embed local files 2022-09-27 12:03:38 -03:00
.gitignore Add a plugin icon and screenshots 2022-05-24 16:38:10 +01:00
create-block-theme.php Version Bump 2022-08-30 17:03:01 -04:00
index.php Refactor w/ boilerplate & encapsulate logic (#41) 2022-03-04 08:29:31 -06:00
LICENSE Initial commit 2021-10-29 13:39:09 +01:00
README.md Update button text ref in readme.md 2022-10-03 19:35:59 +01:00
readme.txt Update readme.txt 2022-10-03 15:14:40 -03:00

Create Block Theme

A WordPress plugin to create block themes.

This plugin allows you to:

  • Create a new theme, blank theme, child theme or style variation.
  • Embed Google Fonts in your theme
  • Embed local font assets in your theme

Create Block Theme

This feature can be used in six ways:

1.Export

Export the activated theme including the user changes.

2. Create a child theme

Creates a new child theme with the currently activated theme as a parent.

3. Clone the current theme

Creates a new theme by cloning the activated theme. The resulting theme will have all of the assets of the activated theme combined with the user's changes.

4. Overwrite theme files

Saves user's changes to the theme files and deletes the user's changes.

5. Generate blank theme

Generate a boilerplate "empty" theme inside of current site's themes directory.

6. Create a style variation

Saves user's changes as a style variation of the current theme.

Embed Google Fonts or local font files

This feature allows you to embed fonts into your current theme. You can embed Google Fonts and local font assets.

When you add a font the plugin will add to your theme:

  • The font files to your theme's file structure under this path ./assets/fonts.
  • The font face definitions to the theme.json file.

You can continue using your modified theme or you can export it as a new theme containing the new fonts.

How to use the plugin

Step 1 Setup

Install and activate the Create Block Theme plugin.

In the WordPress Admin Dashboard, under Appearance there will be three new pages called:

  • Create Block Theme
  • Embed Google font in your current theme
  • Embed local font file assets

Step 2 Fonts, styles and templates customizations

Make changes to your site styles and templates using the Site Editor. You can also include new fonts using the plugin options.

Step 3 Save

Still in the WordPress dashboard, navigate to "Appearance" -> "Create Block Theme" section. Select one of the available options and then, if necessary, add the details for the theme here. These details will be used in the style.css file. Click "Generate” button, to save the theme.